refactor: fix eslint errors

This commit is contained in:
avwo
2016-04-15 21:13:38 +08:00
parent 1fc90dd91f
commit e7747f77b1
2 changed files with 1 additions and 7 deletions
+1 -5
View File
@@ -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;