Skip to content

Commit 7b17705

Browse files
committed
lib: simplify check in child_process
PR-URL: #37367 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent eec20ed commit 7b17705

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)