Merge pull request #3 from felschr/main

fix wrong assignment operator
This commit is contained in:
Pablo Ovelleiro Corral 2024-03-27 19:48:58 +01:00 committed by GitHub
commit 7f0960e02a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,7 @@ func main() {
log.Println("Enter path to private PGP key (default: ./priv.asc):")
_, err := fmt.Scanf("%s", &keyfile)
if err != nil && err.Error() == "unexpected newline" {
keyfile := "./priv.asc"
keyfile = "./priv.asc"
} else if err != nil {
log.Fatal(err)
}