Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e4c173b

Browse files
zoubinMyles Borins
authored and
Myles Borins
committedJan 11, 2016
stream: remove useless if test in transform
PR-URL: #4617 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]>
1 parent 36b385d commit e4c173b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎lib/_stream_transform.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ function afterTransform(stream, er, data) {
7575
if (data !== null && data !== undefined)
7676
stream.push(data);
7777

78-
if (cb)
79-
cb(er);
78+
cb(er);
8079

8180
var rs = stream._readableState;
8281
rs.reading = false;

0 commit comments

Comments
 (0)
Please sign in to comment.