Skip to content

Commit 2285936

Browse files
ckarandeMylesBorins
authored andcommitted
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>
1 parent 9d26358 commit 2285936

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/internal/child_process.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,7 @@ function flushStdio(subprocess) {
300300
// TODO(addaleax): This doesn't necessarily account for all the ways in
301301
// which data can be read from a stream, e.g. being consumed on the
302302
// native layer directly as a StreamBase.
303-
if (!stream || !stream.readable ||
304-
stream._readableState.readableListening ||
305-
stream[kIsUsedAsStdio]) {
303+
if (!stream || !stream.readable || stream[kIsUsedAsStdio]) {
306304
continue;
307305
}
308306
stream.resume();

0 commit comments

Comments
 (0)