Skip to content

Commit

Permalink
lib: simplify check in child_process
Browse files Browse the repository at this point in the history
PR-URL: #37367
Reviewed-By: Zijian Liu <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
  • Loading branch information
RaisinTen authored and danielleadams committed Feb 16, 2021
1 parent d808db2 commit c6198fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/child_process.js
Original file line number Diff line number Diff line change
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 c6198fd

Please sign in to comment.