Skip to content

Commit

Permalink
refactor: simplify return
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Aug 21, 2022
1 parent 06d348d commit 04d0ae0
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ export default class InProcessRunner {
callbacks.push(result)
}

const callbackResult = await Promise.race(callbacks)

return callbackResult
return Promise.race(callbacks)
}
}

0 comments on commit 04d0ae0

Please sign in to comment.