Skip to content

Commit

Permalink
fix: lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Aug 17, 2018
1 parent 48c9b38 commit 3ed8ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function ls(dir: string) {
return Promise.all(paths.map(path => fs.stat(path).then(stat => ({path, stat}))))
}

export function wait(ms: number, unref: boolean = false): Promise<void> {
export function wait(ms: number, unref = false): Promise<void> {
return new Promise(resolve => {
let t: any = setTimeout(() => resolve(), ms)
if (unref) t.unref()
Expand Down

0 comments on commit 3ed8ed1

Please sign in to comment.