Skip to content

Commit

Permalink
fix(cli): Add missing await to PromiseQueue enqueue step
Browse files Browse the repository at this point in the history
  • Loading branch information
nellh committed Jan 16, 2025
1 parent e310c90 commit be1b610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/worker/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export class PromiseQueue {
private running = false

enqueue(promiseFn: (...args: any[]) => Promise<any>, ...args: any[]) {
this.queue.push(async () => promiseFn(...args))
this.queue.push(async () => await promiseFn(...args))

Check warning on line 6 in cli/src/worker/queue.ts

View check run for this annotation

Codecov / codecov/patch

cli/src/worker/queue.ts#L6

Added line #L6 was not covered by tests
this.processQueue()
}

Expand Down

0 comments on commit be1b610

Please sign in to comment.