Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
weseven committed Aug 20, 2024
1 parent 9ac1549 commit da1092b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion service/controller/key/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion service/internal/tenantclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit da1092b

Please sign in to comment.