clean and return nil for retry.Config

This commit is contained in:
Davor Kapsa 2019-10-10 20:48:26 +02:00 committed by GitHub
parent 4c615341ef
commit 29a6938de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ func (s *StepDeleteResourceGroup) deleteDeploymentResources(ctx context.Context,
resourceType,
resourceName))
_ = 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 {
@ -106,7 +106,7 @@ func (s *StepDeleteResourceGroup) deleteDeploymentResources(ctx context.Context,
if err != nil {
s.reportIfError(err, resourceName)
}
return err
return nil
})
if err = deploymentOperations.Next(); err != nil {