mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-30 15:02:23 +00:00
Merge pull request #29866 from xiangpengzhao/err-to-nil
Automatic merge from submit-queue Return nil directly when err is nil. When err is nil, return nil directly instead of `err` to avoid confusion.
This commit is contained in:
commit
48c0612805
@ -60,7 +60,7 @@ func NewClusterClientSet(c *federation_v1beta1.Cluster) (*ClusterClient, error)
|
||||
return nil, nil
|
||||
}
|
||||
}
|
||||
return &clusterClientSet, err
|
||||
return &clusterClientSet, nil
|
||||
}
|
||||
|
||||
// GetClusterHealthStatus gets the kubernetes cluster health status by requesting "/healthz"
|
||||
|
Loading…
Reference in New Issue
Block a user