Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 57ba207

Browse files
committed
flow type compliance
1 parent d9e1a76 commit 57ba207

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mixins/duration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export default class Duration {
4646
async sleep (ms: number) { return new Promise(resolve => setTimeout(resolve, ms)) }
4747

4848
async wait () {
49-
50-
let resolved = await this.sleep(this.parse(this.cmd.flags.duration))
49+
let ms = this.parse(this.cmd.duration)
50+
let resolved = await this.sleep(ms)
5151
console.log('operation did not complete in provided duration')
5252
return resolved
5353
}

0 commit comments

Comments
 (0)