Skip to content

Commit

Permalink
net: remove unnecessary variables
Browse files Browse the repository at this point in the history
PR-URL: #20864
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
  • Loading branch information
chainhelen authored and targos committed May 25, 2018
1 parent 443d60a commit ed9e964
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/net.js
Expand Up @@ -1416,8 +1416,7 @@ Server.prototype.listen = function(...args) {
throw new ERR_SERVER_ALREADY_LISTEN();
}

var hasCallback = (cb !== null);
if (hasCallback) {
if (cb !== null) {
this.once('listening', cb);
}
var backlogFromArgs =
Expand Down Expand Up @@ -1704,7 +1703,7 @@ if (process.platform === 'win32') {
}
};
} else {
_setSimultaneousAccepts = function(handle) {};
_setSimultaneousAccepts = function() {};
}

module.exports = {
Expand Down

0 comments on commit ed9e964

Please sign in to comment.