Merge pull request #5537 from ErikEk/invoice-unused-error-check

invoice: unused error check
This commit is contained in:
Oliver Gugger authored and GitHub committed 2021-07-20 09:29:10 +02:00
commit 306da010d8
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")) descHash, err = hex.DecodeString(ctx.String("description_hash"))
if err != nil { if err != nil {
return fmt.Errorf("unable to parse description_hash: %v", err) return fmt.Errorf("unable to parse description_hash: %v", err)
@@ -7,4 +7,11 @@ added](https://github.com/lightningnetwork/lnd/pull/5520) to ensure that all
PRs add an entry in the release notes folder that at leasts links to PR being PRs add an entry in the release notes folder that at leasts links to PR being
added. added.
# Code Health
## Code cleanup, refactor, typo fixes
* [Unused error check
removed](https://github.com/lightningnetwork/lnd/pull/5537).
# Contributors (Alphabetical Order) # Contributors (Alphabetical Order)
ErikEk