Skip to content

Commit

Permalink
Fix get-port usage
Browse files Browse the repository at this point in the history
It's risky to pass a function to a map() operation, and indeed since
get-port@7.1.0 the getPort() function takes a first argument.
  • Loading branch information
novemberborn authored and sindresorhus committed Apr 5, 2017
1 parent affbb45 commit 054d39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class Api extends EventEmitter {
}

return Promise
.map(files, getPort)
.map(files, () => getPort())
.map(port => {
const forkExecArgv = execArgv.slice();
let flagName = isInspect ? '--inspect' : '--debug';
Expand Down

0 comments on commit 054d39b

Please sign in to comment.