Browse Source

stream: remove useless if test in transform

PR-URL: https://github.com/nodejs/node/pull/4617
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
v4.x
zoubin 9 years ago
committed by Myles Borins
parent
commit
d71f9992f9
  1. 3
      lib/_stream_transform.js

3
lib/_stream_transform.js

@ -75,8 +75,7 @@ function afterTransform(stream, er, data) {
if (data !== null && data !== undefined)
stream.push(data);
if (cb)
cb(er);
cb(er);
var rs = stream._readableState;
rs.reading = false;

Loading…
Cancel
Save