style: remove redundant judgment

Signed-off-by: cndoit18 <cndoit18@outlook.com>
This commit is contained in:
cndoit18
2022-07-29 18:25:05 +08:00
parent 26842bb0c8
commit ec43037d0f
26 changed files with 26 additions and 112 deletions

View File

@@ -87,11 +87,7 @@ func validateCSR(obj *certificates.CertificateSigningRequest) error {
return err
}
// check that the signature is valid
err = csr.CheckSignature()
if err != nil {
return err
}
return nil
return csr.CheckSignature()
}
func validateCertificate(pemData []byte) error {