helper/resource: Error shouldn't be returned in case of success
This commit is contained in:
parent
8582f4df9f
commit
034287fdc2
|
@ -21,6 +21,7 @@ func Retry(timeout time.Duration, f RetryFunc) error {
|
|||
Refresh: func() (interface{}, string, error) {
|
||||
rerr := f()
|
||||
if rerr == nil {
|
||||
resultErr = nil
|
||||
return 42, "success", nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue