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>
This commit is contained in:
zoubin 2016-01-11 17:22:53 +08:00 committed by Roman Reiss
parent 5f0abd6472
commit ce9c93cac0

View File

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