Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Burdett <[email protected]>
  • Loading branch information
burdettadam committed Jun 30, 2021
1 parent ccf6bcf commit 6aade61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/routing/services/RoutingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export const waitForEvent = async (
let complete = false
return new Promise<BaseEvent>(async (resolve, reject) => {
setTimeout(() => {
if(!complete){
cleanup();
if (!complete) {
cleanup()
reject(new Error(`Timed out waiting for event: ${eventName}`))
}
}, timeout)
Expand Down

0 comments on commit 6aade61

Please sign in to comment.