1
0
Fork 0
mirror of https://github.com/Luzifer/vault-openvpn.git synced 2024-12-25 14:21:21 +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,10 +370,9 @@ func revokeCertificateByFQDN(fqdn string) error {
for _, cert := range certs { for _, cert := range certs {
if cert.Subject.CommonName == fqdn { if cert.Subject.CommonName == fqdn {
err := revokeCertificateBySerial(certutil.GetHexFormatted(cert.SerialNumber.Bytes(), ":")) if err := revokeCertificateBySerial(certutil.GetHexFormatted(cert.SerialNumber.Bytes(), ":")); err != nil {
if err != nil { return err
return err }
}
} }
} }