From 66f1574575563d27a1eb0eff1c933a49d209fc34 Mon Sep 17 00:00:00 2001 From: Darshan Sen Date: Sun, 14 Feb 2021 21:35:18 +0530 Subject: [PATCH] lib: simplify check in child_process --- lib/child_process.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/child_process.js b/lib/child_process.js index 74699a16834c30..c72270de103935 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -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++; }