Skip to content

Commit b515ccc

Browse files
zoubinMyles Borins
authored and
Myles Borins
committed
stream: remove useless if test in transform
PR-URL: #4617 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
1 parent 6f9a96f commit b515ccc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/_stream_transform.js

Lines changed: 1 addition & 2 deletions
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)