helper/resource: Error shouldn't be returned in case of success

This commit is contained in:
Radek Simko 2016-03-10 13:41:42 +00:00
parent 8582f4df9f
commit 034287fdc2
1 changed files with 1 additions and 0 deletions

View File

@ -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
}