Skip to content
Permalink
Browse files

child_process: remove unnecessary use of inner state

PR-URL: #29358
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
ckarande authored and Trott committed Aug 26, 2019
1 parent 4de31d5 commit f9c16b87eff60858efa0b6977fa1d253be538589
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/internal/child_process.js
@@ -301,9 +301,7 @@ function flushStdio(subprocess) {
// TODO(addaleax): This doesn't necessarily account for all the ways in
// which data can be read from a stream, e.g. being consumed on the
// native layer directly as a StreamBase.
if (!stream || !stream.readable ||
stream._readableState.readableListening ||
stream[kIsUsedAsStdio]) {
if (!stream || !stream.readable || stream[kIsUsedAsStdio]) {
continue;
}
stream.resume();

0 comments on commit f9c16b8

Please sign in to comment.
You can’t perform that action at this time.