stream: remove useless check
authorBrian White <mscdex@mscdex.net>
Sun, 23 Feb 2014 19:00:28 +0000 (14:00 -0500)
committerFedor Indutny <fedor.indutny@gmail.com>
Mon, 24 Feb 2014 11:08:11 +0000 (15:08 +0400)
lib/_stream_readable.js

index fd63969..1d486cf 100755 (executable)
@@ -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;