Skip to content

Commit fe47563

Browse files
RaisinTentargos
authored andcommitted
lib: simplify check in child_process
PR-URL: #37367 Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 07130c0 commit fe47563

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/child_process.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ function fork(modulePath /* , args, options */) {
8585
args = arguments[pos++];
8686
}
8787

88-
if (pos < arguments.length &&
89-
(arguments[pos] === undefined || arguments[pos] === null)) {
88+
if (pos < arguments.length && arguments[pos] == null) {
9089
pos++;
9190
}
9291

0 commit comments

Comments
 (0)