Skip to content

Commit

Permalink
refactor: replace 'err == wait.ErrWaitTimeout' with 'wait.Interrupted…
Browse files Browse the repository at this point in the history
…(err)'
  • Loading branch information
garomonegro committed Jul 31, 2024
1 parent 9fe6685 commit 824459f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func RetryOnError(backoff *wait.Backoff, retryExpected func(error) bool, fn Func
return false, ex
}
})
if err == wait.ErrWaitTimeout {
if wait.Interrupted(err) {
err = lastErr
}
return out, err
Expand Down

0 comments on commit 824459f

Please sign in to comment.