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:
committed by
Alena Prokharchyk
parent
9a03d8020b
commit
8022b815b3
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user