Skip to content

Commit c6198fd

Browse files
RaisinTendanielleadams
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 d808db2 commit c6198fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/child_process.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ function fork(modulePath /* , args, options */) {
9999
args = arguments[pos++];
100100
}
101101

102-
if (pos < arguments.length &&
103-
(arguments[pos] === undefined || arguments[pos] === null)) {
102+
if (pos < arguments.length && arguments[pos] == null) {
104103
pos++;
105104
}
106105

0 commit comments

Comments
 (0)