mirror of
https://github.com/rancher/k3k.git
synced 2026-08-18 03:46:31 +00:00
fix lint
This commit is contained in:
@@ -57,6 +57,7 @@ func (c *ClusterReconciler) ensureHCPKubernetesEndpointSlice(ctx context.Context
|
||||
}
|
||||
|
||||
portStr := cmp.Or(url.Port(), "443")
|
||||
|
||||
port, err := strconv.Atoi(portStr)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -151,6 +152,7 @@ func (c *ClusterReconciler) ensureHCPKubernetesEndpoints(ctx context.Context, cl
|
||||
}
|
||||
|
||||
portStr := cmp.Or(url.Port(), "443")
|
||||
|
||||
port, err := strconv.Atoi(portStr)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user