Skip to content

Commit 725afef

Browse files
committed
fix indent
1 parent 053b56e commit 725afef

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/portscanner.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,19 @@ portscanner.checkPortStatus = function(port, options, callback) {
8888
// exception
8989
socket.on('error', function(exception) {
9090
if(exception.code !== "ECONNREFUSED") {
91-
error = exception
91+
error = exception
9292
}
93-
else
94-
connectionRefused = true;
95-
status = 'closed'
93+
else
94+
connectionRefused = true;
95+
status = 'closed'
9696
})
9797

9898
// Return after the socket has closed
9999
socket.on('close', function(exception) {
100-
if(exception && !connectionRefused)
101-
error = exception;
102-
else
103-
error = null;
100+
if(exception && !connectionRefused)
101+
error = exception;
102+
else
103+
error = null;
104104
callback(error, status)
105105
})
106106

0 commit comments

Comments
 (0)