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:
parent
3e6ebab389
commit
167d440b65
@ -127,14 +127,12 @@ func (s *secretsStorage) DeleteByLabel(ctx context.Context, labelName string, la
|
||||
}.String(),
|
||||
})
|
||||
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)
|
||||
}
|
||||
// TODO try to delete all of the items and consolidate all of the errors and return them all
|
||||
for _, secret := range list.Items {
|
||||
err = s.secrets.Delete(ctx, secret.Name, metav1.DeleteOptions{})
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user