1
0
Fork 0

Drop unnecessary type conversions

This commit is contained in:
ferhat elmas 2017-12-18 09:14:03 +01:00 committed by Traefiker
parent f6520727a3
commit 705f3f1372
8 changed files with 16 additions and 16 deletions

View file

@ -143,7 +143,7 @@ func pemEncode(data interface{}) []byte {
case *x509.CertificateRequest:
pemBlock = &pem.Block{Type: "CERTIFICATE REQUEST", Bytes: key.Raw}
case []byte:
pemBlock = &pem.Block{Type: "CERTIFICATE", Bytes: []byte(data.([]byte))}
pemBlock = &pem.Block{Type: "CERTIFICATE", Bytes: data.([]byte)}
}
return pem.EncodeToMemory(pemBlock)