diff options
Diffstat (limited to 'lib/_stream_readable.js')
-rw-r--r-- | lib/_stream_readable.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index e1636c85a..3534bf912 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -373,8 +373,7 @@ function chunkInvalid(state, chunk) { if (!util.isBuffer(chunk) && !util.isString(chunk) && !util.isNullOrUndefined(chunk) && - !state.objectMode && - !er) { + !state.objectMode) { er = new TypeError('Invalid non-string/buffer chunk'); } return er; |