mirror of
https://github.com/avwo/whistle.git
synced 2026-10-26 03:53:03 +08:00
refactor: fix eslint errors
This commit is contained in:
@@ -110,7 +110,7 @@ proto.destroy = function destroy() {
|
||||
this._serverCount = 0;
|
||||
for (var i in cache) {
|
||||
var promise = cache[i];
|
||||
promise.done(function(port) {
|
||||
promise.done(function() {
|
||||
setTimeout(function() {
|
||||
try {
|
||||
promise.server.close();
|
||||
@@ -121,8 +121,6 @@ proto.destroy = function destroy() {
|
||||
};
|
||||
|
||||
function getServer(options, secureConnectionListener, callback) {
|
||||
var self = this;
|
||||
|
||||
if (curPort > MAX_PORT) {
|
||||
curPort = 40000;
|
||||
}
|
||||
@@ -140,7 +138,5 @@ function getServer(options, secureConnectionListener, callback) {
|
||||
});
|
||||
}
|
||||
|
||||
function noop() {}
|
||||
|
||||
module.exports = ServerAgent;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user