Skip to content

Commit 301a968

Browse files
committed
child_process: remove redundant condition
There is no need to check `flowing` since `resume` does nothing when `flowing` is already true. PR-URL: #511 Reviewed-By: Chris Dickinson <[email protected]>
1 parent 06cfff9 commit 301a968

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/child_process.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,8 +1057,7 @@ util.inherits(ChildProcess, EventEmitter);
10571057
function flushStdio(subprocess) {
10581058
if (subprocess.stdio == null) return;
10591059
subprocess.stdio.forEach(function(stream, fd, stdio) {
1060-
if (!stream || !stream.readable || stream._consuming ||
1061-
stream._readableState.flowing)
1060+
if (!stream || !stream.readable || stream._consuming)
10621061
return;
10631062
stream.resume();
10641063
});

0 commit comments

Comments
 (0)