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
Vladimir Kurchatkin 2015-01-19 18:48:56 +03:00
parent 06cfff9350
commit 301a968a40
1 changed files with 1 additions and 2 deletions

View File

@ -1057,8 +1057,7 @@ util.inherits(ChildProcess, EventEmitter);
function flushStdio(subprocess) { function flushStdio(subprocess) {
if (subprocess.stdio == null) return; if (subprocess.stdio == null) return;
subprocess.stdio.forEach(function(stream, fd, stdio) { subprocess.stdio.forEach(function(stream, fd, stdio) {
if (!stream || !stream.readable || stream._consuming || if (!stream || !stream.readable || stream._consuming)
stream._readableState.flowing)
return; return;
stream.resume(); stream.resume();
}); });