projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1efe683
)
stream: remove useless check
author
Brian White
<mscdex@mscdex.net>
Sun, 23 Feb 2014 19:00:28 +0000
(14:00 -0500)
committer
Fedor Indutny
<fedor.indutny@gmail.com>
Mon, 24 Feb 2014 11:08:11 +0000
(15:08 +0400)
lib/_stream_readable.js
patch
|
blob
|
history
diff --git
a/lib/_stream_readable.js
b/lib/_stream_readable.js
index
fd63969
..
1d486cf
100755
(executable)
--- a/
lib/_stream_readable.js
+++ b/
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;