Commit a1c5b8f7 authored by Rahul Chanila's avatar Rahul Chanila Committed by Joe Haddad
Browse files

Updates comment to reflect codebase (#3576)

the code got updated from `detect()` to `choosePort` while the comment did not.
parent af291f3c
Showing with 1 addition and 1 deletion
+1 -1
...@@ -52,7 +52,7 @@ const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000; ...@@ -52,7 +52,7 @@ const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000;
const HOST = process.env.HOST || '0.0.0.0'; const HOST = process.env.HOST || '0.0.0.0';
// We attempt to use the default port but if it is busy, we offer the user to // We attempt to use the default port but if it is busy, we offer the user to
// run on a different port. `detect()` Promise resolves to the next free port. // run on a different port. `choosePort()` Promise resolves to the next free port.
choosePort(HOST, DEFAULT_PORT) choosePort(HOST, DEFAULT_PORT)
.then(port => { .then(port => {
if (port == null) { if (port == null) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment