simplify, address comment
@@ -374,11 +374,9 @@ func (s *ServiceClient) DeleteForHelmController(ctx context.Context, namespace,
metav1.DeleteOptions{},
)
- if err != nil {
if apierrors.IsNotFound(err) {
return nil
}
- }
return errors.Wrap(err, "error deleting helm chart @"+namespace+"/"+service)
}
@@ -395,11 +393,9 @@ func (s *ServiceClient) DeleteAllForHelmController(ctx context.Context, targetNa
},
)
- if err != nil {
if apierrors.IsNotFound(err) {
return nil
}
- }
return errors.Wrap(err, "error deleting helm charts in "+targetNamespace)
}
