Fix golangci-lint errors
that appeared due to the new version v1.53.1.
This commit is contained in:
@ -18,7 +18,7 @@ func RetryExponentialAttempts(attempts int, sleep time.Duration, f func() error)
|
||||
for i := 0; i < attempts; i++ {
|
||||
err = f()
|
||||
if err == nil {
|
||||
return
|
||||
return nil
|
||||
} else {
|
||||
log.WithField("count", i).WithError(err).Debug("retrying after error")
|
||||
time.Sleep(sleep)
|
||||
|
Reference in New Issue
Block a user