From c82d9f926fa721ba106ea63d918028da0809088f Mon Sep 17 00:00:00 2001 From: megan07 Date: Tue, 10 Dec 2019 17:21:41 +0000 Subject: [PATCH] return nil instead of op, which is an interface containing nil Signed-off-by: Modular Magician --- google/common_operation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/common_operation.go b/google/common_operation.go index f08f5f90b04..2e64d477847 100644 --- a/google/common_operation.go +++ b/google/common_operation.go @@ -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 } }