1
0
Fork 0

whitespace

This commit is contained in:
Jan Steemann 2014-10-15 12:45:57 +02:00
parent bf1cc16c5f
commit cc9f416bba
2 changed files with 3 additions and 3 deletions

View File

@ -567,7 +567,7 @@ actions.defineHttp({
return;
}
try {
var r = internal.testPort("tcp://0.0.0.0:"+port);
var r = internal.testPort("tcp://0.0.0.0:" + port);
res.responseCode = actions.HTTP_OK;
res.contentType = "application/json; charset=utf-8";
res.body = JSON.stringify(r);

View File

@ -140,10 +140,10 @@ PortFinder.prototype.next = function () {
}
}
// Check that port is available:
if (!this.dispatcher.avoidPorts.hasOwnProperty(this.port)) {
if (! this.dispatcher.avoidPorts.hasOwnProperty(this.port)) {
var available = true;
if (this.dispatcher.endpoint === "tcp://localhost:") {
available = testPort("tcp://0.0.0.0:"+this.port);
available = testPort("tcp://0.0.0.0:" + this.port);
}
else {
var url = endpointToURL(this.dispatcher.endpoint) +