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 <[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]>
  • 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
Original file line number Diff line number Diff line change
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.