From 4c615341ef5f9a02481339cb98c0fb016861b033 Mon Sep 17 00:00:00 2001 From: Davor Kapsa Date: Thu, 10 Oct 2019 17:33:24 +0200 Subject: [PATCH] Ignore retry.Config var retry.Config is struct. Call it err is wrong. --- builder/azure/arm/step_delete_resource_group.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/builder/azure/arm/step_delete_resource_group.go b/builder/azure/arm/step_delete_resource_group.go index 8490dbc58..572b22884 100644 --- a/builder/azure/arm/step_delete_resource_group.go +++ b/builder/azure/arm/step_delete_resource_group.go @@ -95,7 +95,7 @@ func (s *StepDeleteResourceGroup) deleteDeploymentResources(ctx context.Context, resourceType, resourceName)) - err := retry.Config{ + _ = retry.Config{ Tries: 10, RetryDelay: (&retry.Backoff{InitialBackoff: 10 * time.Second, MaxBackoff: 600 * time.Second, Multiplier: 2}).Linear, }.Run(ctx, func(ctx context.Context) error { @@ -108,9 +108,6 @@ func (s *StepDeleteResourceGroup) deleteDeploymentResources(ctx context.Context, } return err }) - if err != nil { - return err - } if err = deploymentOperations.Next(); err != nil { return err