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