Skip to content

Commit

Permalink
Remove err impossible condition: nil != nil (#1934)
Browse files Browse the repository at this point in the history
Signed-off-by: Horiodino <holiodin@gmail.com>
  • Loading branch information
Horiodino authored Jan 31, 2025
1 parent 260872d commit c828ca3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/ca/csc.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ func CreateCSCFromDER(cert []byte, chain []*x509.Certificate) (*CodeSigningCerti

// convert to X509 and store both formats
c.FinalChain = chain
if err != nil {
return nil, err
}
for _, chainCert := range c.FinalChain {
c.finalChainPEM = append(c.finalChainPEM, strings.TrimSpace(string(cryptoutils.PEMEncode(cryptoutils.CertificatePEMType, chainCert.Raw))))
}
Expand Down

0 comments on commit c828ca3

Please # to comment.