1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 15:06:23 +00:00

Remove uneeded nil check

This commit is contained in:
Dax McDonald
2019-09-20 16:54:44 -07:00
committed by Alena Prokharchyk
parent 9a03d8020b
commit 8022b815b3
2 changed files with 8 additions and 12 deletions

View File

@@ -140,8 +140,5 @@ func getEtcdTLSConfig(certificate, key []byte) (*tls.Config, error) {
InsecureSkipVerify: true,
Certificates: []tls.Certificate{x509Pair},
}
if err != nil {
return nil, err
}
return tlsConfig, nil
}