Skip to content

Commit

Permalink
return nil instead of op, which is an interface containing nil
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
megan07 authored and modular-magician committed Dec 10, 2019
1 parent 6c8ef61 commit c82d9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/common_operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func CommonRefreshFunc(w Waiter) resource.StateRefreshFunc {
for _, e := range getAllTypes(err, &googleapi.Error{}, &url.Error{}) {
if isRetryableError(e, predicates) {
log.Printf("[DEBUG] Dismissed error on GET of operation '%v' retryable: %s", w.OpName(), err)
return op, "done: false", nil
return nil, "done: false", nil
}
}

Expand Down

0 comments on commit c82d9f9

Please sign in to comment.