Fix linting
This commit is contained in:
parent
a5d33512fe
commit
ca707cbe05
1 changed files with 2 additions and 0 deletions
|
@ -297,8 +297,10 @@ func canonicalize(csr *x509.CertificateRequest) (canonicalized *x509.Certificate
|
||||||
ip := net.ParseIP(csr.Subject.CommonName)
|
ip := net.ParseIP(csr.Subject.CommonName)
|
||||||
subjectIsIP := ip != nil
|
subjectIsIP := ip != nil
|
||||||
if subjectIsIP {
|
if subjectIsIP {
|
||||||
|
// nolint:gocritic
|
||||||
canonicalized.IPAddresses = append(csr.IPAddresses, ip)
|
canonicalized.IPAddresses = append(csr.IPAddresses, ip)
|
||||||
} else {
|
} else {
|
||||||
|
// nolint:gocritic
|
||||||
canonicalized.DNSNames = append(csr.DNSNames, csr.Subject.CommonName)
|
canonicalized.DNSNames = append(csr.DNSNames, csr.Subject.CommonName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue