1
0
Fork 0
mirror of https://github.com/Luzifer/vault-openvpn.git synced 2024-11-09 08:40:04 +00:00

Apply gofmt, join if clause and function call

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-01-30 22:30:59 +01:00
parent 2854879219
commit b00de8490a
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -370,8 +370,7 @@ func revokeCertificateByFQDN(fqdn string) error {
for _, cert := range certs {
if cert.Subject.CommonName == fqdn {
err := revokeCertificateBySerial(certutil.GetHexFormatted(cert.SerialNumber.Bytes(), ":"))
if err != nil {
if err := revokeCertificateBySerial(certutil.GetHexFormatted(cert.SerialNumber.Bytes(), ":")); err != nil {
return err
}
}