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:
Darshan Sen authored and Michaël Zasso committed 2021-05-01 12:25:11 +02:00
1 parent 07130c038f
commit fe47563bed
1 file changed
+1 -2
+1 -2
View File
@@ -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++;
}