Skip to content

Commit

Permalink
clean up if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvinnix committed Feb 21, 2024
1 parent 9796a86 commit d861907
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,7 @@ func (vm *vm) run() {
vm.r.limiterWaitCount++
vm.r.limiterWaitTotalTime += delay

err := sleep(ctx, delay)
if err != nil {
if err := sleep(ctx, delay); err != nil {
r.Cancel()
panic(err)
}
Expand Down

0 comments on commit d861907

Please sign in to comment.