invoice: unused error check

This commit is contained in:
ErikEk 2021-07-17 15:00:05 +02:00
parent 7176a212f7
commit 5282b54ad3
2 changed files with 7 additions and 4 deletions

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)

View File

@ -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
added.
# Code Health
## Code cleanup, refactor, typo fixes
* [Unused error check
removed](https://github.com/lightningnetwork/lnd/pull/5537).
# Contributors (Alphabetical Order)
ErikEk