Skip to content

Commit

Permalink
fix: name is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed Jun 1, 2020
1 parent 62f4878 commit c1829f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default async function getPort (options?: GetPortOptions): Promise<number

// Memo
const memoOptions = { name: opts.memoName, dir: opts.memoDir }
const memoKey = 'port_' + name
const memoKey = 'port_' + opts.name
const memo = await getMemo(memoOptions)
if (memo[memoKey]) {
portsToCheck.push(memo[memoKey])
Expand Down

0 comments on commit c1829f1

Please sign in to comment.