diff --git a/index.js b/index.js index 9b59f6c..9e6e19d 100644 --- a/index.js +++ b/index.js @@ -129,11 +129,6 @@ function split (matcher, mapper, options) { stream.maxLength = options.maxLength stream.skipOverflow = options.skipOverflow || false stream.overflow = false - stream._destroy = function (err, cb) { - // Weird Node v12 bug that we need to work around - this._writableState.errorEmitted = false - cb(err) - } return stream }