mirror of https://github.com/nodejs/node.git
child_process: remove redundant condition
There is no need to check `flowing` since `resume` does nothing when `flowing` is already true. PR-URL: https://github.com/iojs/io.js/pull/511 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>pull/511/head
parent
06cfff9350
commit
301a968a40
|
@ -1057,8 +1057,7 @@ util.inherits(ChildProcess, EventEmitter);
|
|||
function flushStdio(subprocess) {
|
||||
if (subprocess.stdio == null) return;
|
||||
subprocess.stdio.forEach(function(stream, fd, stdio) {
|
||||
if (!stream || !stream.readable || stream._consuming ||
|
||||
stream._readableState.flowing)
|
||||
if (!stream || !stream.readable || stream._consuming)
|
||||
return;
|
||||
stream.resume();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue