gosimple code
@@ -30,15 +30,15 @@ func CanReadCertAndKey(certPath, keyPath string) (bool, error) {
certReadable := canReadFile(certPath)
keyReadable := canReadFile(keyPath)
- if certReadable == false && keyReadable == false {
+ if !certReadable && !keyReadable {
return false, nil
}
- if certReadable == false {
+ if !certReadable {
return false, fmt.Errorf("error reading %s, certificate and key must be supplied as a pair", certPath)
}
- if keyReadable == false {
+ if !keyReadable {
return false, fmt.Errorf("error reading %s, certificate and key must be supplied as a pair", keyPath)
}
