Remove this unneccesary go113 nolint directives.

We disabled this linter across the project.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
Matt Moyer 2020-12-09 14:51:27 -06:00
parent 3e6ebab389
commit 167d440b65
No known key found for this signature in database
GPG Key ID: EAE88AD172C5AE2D

View File

@ -127,14 +127,12 @@ func (s *secretsStorage) DeleteByLabel(ctx context.Context, labelName string, la
}.String(), }.String(),
}) })
if err != nil { if err != nil {
//nolint:err113 // there's nothing wrong with this error
return fmt.Errorf(`failed to list secrets for resource "%s" matching label "%s=%s": %w`, s.resource, labelName, labelValue, err) return fmt.Errorf(`failed to list secrets for resource "%s" matching label "%s=%s": %w`, s.resource, labelName, labelValue, err)
} }
// TODO try to delete all of the items and consolidate all of the errors and return them all // TODO try to delete all of the items and consolidate all of the errors and return them all
for _, secret := range list.Items { for _, secret := range list.Items {
err = s.secrets.Delete(ctx, secret.Name, metav1.DeleteOptions{}) err = s.secrets.Delete(ctx, secret.Name, metav1.DeleteOptions{})
if err != nil { if err != nil {
//nolint:err113 // there's nothing wrong with this error
return fmt.Errorf(`failed to delete secrets for resource "%s" matching label "%s=%s" with name %s: %w`, s.resource, labelName, labelValue, secret.Name, err) return fmt.Errorf(`failed to delete secrets for resource "%s" matching label "%s=%s" with name %s: %w`, s.resource, labelName, labelValue, secret.Name, err)
} }
} }