Skip to content

Commit

Permalink
Merge pull request #142 from MasterOdin/patch-1
Browse files Browse the repository at this point in the history
Fix indentation in testPort function
  • Loading branch information
eriktrom authored Aug 13, 2022
2 parents f635574 + f612e0d commit ba17f4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/portfinder.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ internals.testPort = function(options, callback) {
function onListen () {
debugTestPort("done w/ testPort(): OK", options.host, "port", options.port);

options.server.removeListener('error', onError);
options.server.close();
callback(null, options.port);
options.server.removeListener('error', onError);
options.server.close();
callback(null, options.port);
}

function onError (err) {
Expand Down

0 comments on commit ba17f4d

Please sign in to comment.