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 && 'string' !== typeof chunk &&
chunk !== null && chunk !== null &&
chunk !== undefined && chunk !== undefined &&
!state.objectMode && !state.objectMode) {
!er) {
er = new TypeError('Invalid non-string/buffer chunk'); er = new TypeError('Invalid non-string/buffer chunk');
} }
return er; return er;

Loading…
Cancel
Save