Browse Source

stream: remove useless check

v0.10.27-release
Brian White 11 years ago
committed by Fedor Indutny
parent
commit
70ea5bac43
  1. 3
      lib/_stream_readable.js

3
lib/_stream_readable.js

@ -360,8 +360,7 @@ function chunkInvalid(state, chunk) {
'string' !== typeof chunk &&
chunk !== null &&
chunk !== undefined &&
!state.objectMode &&
!er) {
!state.objectMode) {
er = new TypeError('Invalid non-string/buffer chunk');
}
return er;

Loading…
Cancel
Save