We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 443d60a commit ed9e964Copy full SHA for ed9e964
lib/net.js
@@ -1416,8 +1416,7 @@ Server.prototype.listen = function(...args) {
1416
throw new ERR_SERVER_ALREADY_LISTEN();
1417
}
1418
1419
- var hasCallback = (cb !== null);
1420
- if (hasCallback) {
+ if (cb !== null) {
1421
this.once('listening', cb);
1422
1423
var backlogFromArgs =
@@ -1704,7 +1703,7 @@ if (process.platform === 'win32') {
1704
1703
1705
};
1706
} else {
1707
- _setSimultaneousAccepts = function(handle) {};
+ _setSimultaneousAccepts = function() {};
1708
1709
1710
module.exports = {
0 commit comments