Skip to content
Permalink
Browse files
obviouslify type casting
  • Loading branch information
ni-kit committed Dec 18, 2017
1 parent c324c62 commit fba42c41a7ed3dccaa09c1dcc2e0cd3f88976ca3
Showing 1 changed file with 1 addition and 1 deletion.
@@ -27,7 +27,7 @@ internals.testPort = function(options, callback) {
options = {};
}

options.port = +options.port || exports.basePort;
options.port = Number(options.port) || Number(exports.basePort);
options.host = options.host || null;
options.server = options.server || net.createServer(function () {
//

0 comments on commit fba42c4

Please sign in to comment.