mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-17 15:29:21 +00:00
Fix linting
This commit is contained in:
parent
a5d33512fe
commit
ca707cbe05
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user