Skip to content

Commit ed9e964

Browse files
chainhelentargos
authored andcommitted
net: remove unnecessary variables
PR-URL: #20864 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
1 parent 443d60a commit ed9e964

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎lib/net.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,8 +1416,7 @@ Server.prototype.listen = function(...args){
14161416
thrownewERR_SERVER_ALREADY_LISTEN();
14171417
}
14181418

1419-
varhasCallback=(cb!==null);
1420-
if(hasCallback){
1419+
if(cb!==null){
14211420
this.once('listening',cb);
14221421
}
14231422
varbacklogFromArgs=
@@ -1704,7 +1703,7 @@ if (process.platform === 'win32'){
17041703
}
17051704
};
17061705
}else{
1707-
_setSimultaneousAccepts=function(handle){};
1706+
_setSimultaneousAccepts=function(){};
17081707
}
17091708

17101709
module.exports={

0 commit comments

Comments
(0)