From 301a968a40152c1ad3562482b4044458a13ebc4f Mon Sep 17 00:00:00 2001 From: Vladimir Kurchatkin Date: Mon, 19 Jan 2015 18:48:56 +0300 Subject: [PATCH] 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 --- lib/child_process.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/child_process.js b/lib/child_process.js index ae569a29ce1..0d73beb5c5d 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -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(); });