Skip to content

Commit

Permalink
helper/resource: Error shouldn't be returned in case of success
Browse files Browse the repository at this point in the history
  • Loading branch information
Radek Simko committed Mar 10, 2016
1 parent 2dc1c02 commit 7362530
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helper/resource/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7362530

Please sign in to comment.