Skip to content

Commit f9c16b8

Browse files
ckarandeTrott
authored andcommitted
child_process: remove unnecessary use of inner state
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]>
1 parent 4de31d5 commit f9c16b8

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
@@ -301,9 +301,7 @@ function flushStdio(subprocess) {
301301
// TODO(addaleax): This doesn't necessarily account for all the ways in
302302
// which data can be read from a stream, e.g. being consumed on the
303303
// native layer directly as a StreamBase.
304-
if (!stream || !stream.readable ||
305-
stream._readableState.readableListening ||
306-
stream[kIsUsedAsStdio]) {
304+
if (!stream || !stream.readable || stream[kIsUsedAsStdio]) {
307305
continue;
308306
}
309307
stream.resume();

0 commit comments

Comments
 (0)