From da1092b957ee7c3b860229e43a6fc16a6338b29c Mon Sep 17 00:00:00 2001 From: Daniel Simionato Date: Tue, 20 Aug 2024 11:40:02 +0200 Subject: [PATCH] lint fixes --- service/controller/key/key.go | 3 ++- service/internal/tenantclient/client.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/service/controller/key/key.go b/service/controller/key/key.go index 52d0dab04..4a91cb156 100644 --- a/service/controller/key/key.go +++ b/service/controller/key/key.go @@ -46,7 +46,8 @@ func CertConfigCertOperatorVersion(cr v1alpha1.CertConfig) string { func DNSIP(clusterIPRange string) (string, error) { ip, _, err := net.ParseCIDR(clusterIPRange) if err != nil { - return "", microerror.Maskf(invalidConfigError, err.Error()) + strerr := err.Error() + return "", microerror.Maskf(invalidConfigError, strerr) } // Only IPV4 CIDRs are supported. diff --git a/service/internal/tenantclient/client.go b/service/internal/tenantclient/client.go index 54f8a0d31..72c12590b 100644 --- a/service/internal/tenantclient/client.go +++ b/service/internal/tenantclient/client.go @@ -83,7 +83,8 @@ func (c *TenantClient) K8sClient(ctx context.Context, obj interface{}) (k8sclien k8sClient, err = k8sclient.NewClients(c) if err != nil { - return nil, microerror.Maskf(notAvailableError, err.Error()) + strerr := err.Error() + return nil, microerror.Maskf(notAvailableError, strerr) } }