Skip to content

Commit

Permalink
lib: simplify check in child_process
Browse files Browse the repository at this point in the history
PR-URL: nodejs#37367
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
RaisinTen committed Feb 16, 2021
1 parent eec20ed commit 549a11c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/child_process.js
Expand Up @@ -99,8 +99,7 @@ function fork(modulePath /* , args, options */) {
args = arguments[pos++];
}

if (pos < arguments.length &&
(arguments[pos] === undefined || arguments[pos] === null)) {
if (pos < arguments.length && arguments[pos] == null) {
pos++;
}

Expand Down

0 comments on commit 549a11c

Please sign in to comment.