Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2285936

Browse filesBrowse 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
Copy full SHA for 2285936

File tree

Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed
Open diff view settings
Collapse file

‎lib/internal/child_process.js‎

Copy file name to clipboardExpand all lines: lib/internal/child_process.js
+1-3Lines changed: 1 addition & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.