Merge pull request #2198 from alexandear/fix-nilness

Handle errors  in generate_certs
pull/2197/head
Jack Christensen 2024-12-21 08:27:55 -06:00 committed by GitHub
commit 3a1593b25b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -106,12 +106,12 @@ func main() {
panic(err)
}
writeEncryptedPrivateKey("pgx_sslcert.key", clientCertPrivKey, "certpw")
err = writeEncryptedPrivateKey("pgx_sslcert.key", clientCertPrivKey, "certpw")
if err != nil {
panic(err)
}
writeCertificate("pgx_sslcert.crt", clientBytes)
err = writeCertificate("pgx_sslcert.crt", clientBytes)
if err != nil {
panic(err)
}