remove unnecessary type conversation

This commit is contained in:
Chelsea Holland Komlo
2018-05-29 17:07:38 -04:00
parent d4152c77ea
commit a8ff38f790

View File

@@ -147,7 +147,7 @@ func (c *Config) AppendCA(pool *x509.CertPool) error {
return fmt.Errorf("Failed to read CA file: %v", err)
}
block, _ := pem.Decode([]byte(data))
block, _ := pem.Decode(data)
if block == nil {
return fmt.Errorf("Failed to decode CA file from pem format")
}