mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01: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:
parent
d808db2732
commit
c6198fddc7
|
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user