Skip to content

Commit

Permalink
check error
Browse files Browse the repository at this point in the history
  • Loading branch information
kayra1 committed Aug 23, 2024
1 parent f44121c commit b51418c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/certdb/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ func sanitizeCertificateBundle(cert string) string {
if certBlock == nil {
break
}
pem.Encode(&buff, certBlock)
err := pem.Encode(&buff, certBlock)
if err != nil {
return ""
}
certData = rest
}
return strings.TrimSpace(buff.String())
Expand Down

0 comments on commit b51418c

Please sign in to comment.