Skip to content

Commit 054d39b

Browse files
novemberbornsindresorhus
authored andcommitted
Fix get-port usage
It's risky to pass a function to a map() operation, and indeed since [email protected] the getPort() function takes a first argument.
1 parent affbb45 commit 054d39b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class Api extends EventEmitter {
198198
}
199199

200200
return Promise
201-
.map(files, getPort)
201+
.map(files, () => getPort())
202202
.map(port => {
203203
const forkExecArgv = execArgv.slice();
204204
let flagName = isInspect ? '--inspect' : '--debug';

0 commit comments

Comments
 (0)