Skip to content

Commit

Permalink
fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwilliams15 committed Jun 22, 2014
1 parent 053b56e commit 725afef
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/portscanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,19 @@ portscanner.checkPortStatus = function(port, options, callback) {
// exception
socket.on('error', function(exception) {
if(exception.code !== "ECONNREFUSED") {
error = exception
error = exception
}
else
connectionRefused = true;
status = 'closed'
else
connectionRefused = true;
status = 'closed'
})

// Return after the socket has closed
socket.on('close', function(exception) {
if(exception && !connectionRefused)
error = exception;
else
error = null;
if(exception && !connectionRefused)
error = exception;
else
error = null;
callback(error, status)
})

Expand Down

0 comments on commit 725afef

Please sign in to comment.