Skip to content

Commit

Permalink
Fix comment format
Browse files Browse the repository at this point in the history
  • Loading branch information
maraino committed Aug 10, 2022
1 parent 33046b2 commit 022ae3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x509util/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func NewCertificate(cr *x509.CertificateRequest, opts ...Option) (*Certificate,
cert.PublicKey = cr.PublicKey
cert.PublicKeyAlgorithm = cr.PublicKeyAlgorithm

// Generate the subjectAltName extension if the certificate contains
// SANs that are not supported in the Go standard library.
// Generate the subjectAltName extension if the certificate contains SANs
// that are not supported in the Go standard library.
if cert.hasExtendedSANs() && !cert.hasExtension(oidExtensionSubjectAltName) {
ext, err := createSubjectAltNameExtension(&cert, cert.Subject.IsEmpty())
if err != nil {
Expand Down

0 comments on commit 022ae3d

Please sign in to comment.