invoice: unused error check

This commit is contained in:
ErikEk committed 2021-07-19 14:24:52 +02:00
1 parent 7176a212f7
commit 5282b54ad3
2 files changed
+7 -4

No files matched your search

-4
View File
@@ -227,10 +227,6 @@ func addHoldInvoice(ctx *cli.Context) error {
}
}
if err != nil {
return fmt.Errorf("unable to parse preimage: %v", err)
}
descHash, err = hex.DecodeString(ctx.String("description_hash"))
if err != nil {
return fmt.Errorf("unable to parse description_hash: %v", err)