Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
lib: simplify check in child_process
  • Loading branch information
RaisinTen committed Feb 14, 2021
commit 66f1574575563d27a1eb0eff1c933a49d209fc34
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