invoice: unused error check
This commit is contained in:
1 parent
7176a212f7
commit
5282b54ad3
2 files changed
+7
-4
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user