Skip to content

Commit

Permalink
child_process: remove unnecessary use of inner state
Browse files Browse the repository at this point in the history
PR-URL: #29358
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
ckarande authored and MylesBorins committed Jan 16, 2020
1 parent 9d26358 commit 2285936
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/internal/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,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();
Expand Down

0 comments on commit 2285936

Please sign in to comment.