1
0
mirror of https://github.com/golang/go synced 2024-09-29 21:24:30 -06:00

crypto: delete unnecessary line of return

Fixes #53198
This commit is contained in:
cuiweixie 2022-08-03 12:04:17 +08:00
parent 29b9a328d2
commit a3e29d2332

View File

@ -156,7 +156,6 @@ func main() {
keyOut, err := os.OpenFile("key.pem", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
if err != nil {
log.Fatalf("Failed to open key.pem for writing: %v", err)
return
}
privBytes, err := x509.MarshalPKCS8PrivateKey(priv)
if err != nil {