mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 18:18:30 +00:00
Fix linting
This commit is contained in:
@@ -297,8 +297,10 @@ func canonicalize(csr *x509.CertificateRequest) (canonicalized *x509.Certificate
|
||||
ip := net.ParseIP(csr.Subject.CommonName)
|
||||
subjectIsIP := ip != nil
|
||||
if subjectIsIP {
|
||||
// nolint:gocritic
|
||||
canonicalized.IPAddresses = append(csr.IPAddresses, ip)
|
||||
} else {
|
||||
// nolint:gocritic
|
||||
canonicalized.DNSNames = append(csr.DNSNames, csr.Subject.CommonName)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user