Skip to content

Commit fe47563

Browse files
RaisinTentargos
authored andcommitted
lib: simplify check in child_process
PR-URL: #37367 Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 07130c0 commit fe47563

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎lib/child_process.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ function fork(modulePath /* , args, options */) {
8585
args=arguments[pos++];
8686
}
8787

88-
if(pos<arguments.length&&
89-
(arguments[pos]===undefined||arguments[pos]===null)){
88+
if(pos<arguments.length&&arguments[pos]==null){
9089
pos++;
9190
}
9291

0 commit comments

Comments
 (0)