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 <lxxyxzj@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
RaisinTen authored and targos committed May 1, 2021
1 parent 07130c0 commit fe47563
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 @@ -85,8 +85,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 fe47563

Please sign in to comment.