mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
fixed golint error on redundant if
This commit is contained in:
parent
bb4745da99
commit
e03a41ddf8
@ -123,10 +123,7 @@ func LoadClientCert(kubeconfigPath string, bootstrapPath string, certDir string,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Marshal to disk
|
// Marshal to disk
|
||||||
if err := clientcmd.WriteToFile(kubeconfigData, kubeconfigPath); err != nil {
|
return clientcmd.WriteToFile(kubeconfigData, kubeconfigPath)
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func loadRESTClientConfig(kubeconfig string) (*restclient.Config, error) {
|
func loadRESTClientConfig(kubeconfig string) (*restclient.Config, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user