From 1dc1758d72bb0e8c73256513a5a911aacf9392be Mon Sep 17 00:00:00 2001 From: gvicentin Date: Wed, 14 Aug 2024 16:00:48 -0300 Subject: [PATCH] making linter happy again --- kubernetes/ingress.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes/ingress.go b/kubernetes/ingress.go index 5ce70bc..58b8177 100644 --- a/kubernetes/ingress.go +++ b/kubernetes/ingress.go @@ -738,10 +738,10 @@ func (k *IngressService) RemoveCertificate(ctx context.Context, id router.Instan if err != nil { return err } - err = secret.Delete(ctx, k.secretName(id, certCname), metav1.DeleteOptions{}) + return secret.Delete(ctx, k.secretName(id, certCname), metav1.DeleteOptions{}) } - return err + return nil } // SupportedOptions returns the supported options