mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
lib: simplify check in child_process
PR-URL: https://github.com/nodejs/node/pull/37367 Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
07130c038f
commit
fe47563bed
1 file changed
+1
-2
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user