Ignore retry.Config var

retry.Config is struct.
Call it err is wrong.
This commit is contained in:
Davor Kapsa 2019-10-10 17:33:24 +02:00 committed by GitHub
parent fb267dd1dc
commit 4c615341ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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