fixed golint error on redundant if

This commit is contained in:
Mayank Gaikwad 2018-05-04 11:58:30 +05:30
parent bb4745da99
commit e03a41ddf8

View File

@ -123,10 +123,7 @@ func LoadClientCert(kubeconfigPath string, bootstrapPath string, certDir string,
}
// Marshal to disk
if err := clientcmd.WriteToFile(kubeconfigData, kubeconfigPath); err != nil {
return err
}
return nil
return clientcmd.WriteToFile(kubeconfigData, kubeconfigPath)
}
func loadRESTClientConfig(kubeconfig string) (*restclient.Config, error) {