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:
parent
2854879219
commit
b00de8490a
1 changed files with 3 additions and 4 deletions
7
main.go
7
main.go
|
@ -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
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue