mirror of
https://github.com/Luzifer/vault-openvpn.git
synced 2024-11-09 16:50:04 +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 {
|
||||
if cert.Subject.CommonName == fqdn {
|
||||
err := revokeCertificateBySerial(certutil.GetHexFormatted(cert.SerialNumber.Bytes(), ":"))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := revokeCertificateBySerial(certutil.GetHexFormatted(cert.SerialNumber.Bytes(), ":")); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue