mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 15:40:59 +02:00
lnd: fix golint warning which requires to add additional comments
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
0074643c10
commit
ee2379775c
@@ -166,11 +166,11 @@ func (d *DB) LookupInvoice(paymentHash [32]byte) (*Invoice, error) {
|
||||
err := d.View(func(tx *bolt.Tx) error {
|
||||
invoices := tx.Bucket(invoiceBucket)
|
||||
if invoices == nil {
|
||||
return ErrInvoiceNotFound
|
||||
return ErrNoInvoicesCreated
|
||||
}
|
||||
invoiceIndex := invoices.Bucket(invoiceIndexBucket)
|
||||
if invoiceIndex == nil {
|
||||
return ErrInvoiceNotFound
|
||||
return ErrNoInvoicesCreated
|
||||
}
|
||||
|
||||
// Check the invoice index to see if an invoice paying to this
|
||||
|
Reference in New Issue
Block a user