lnd: fix golint warning which requires to add additional comments

This commit is contained in:
Andrey Samokhvalov
2017-02-24 16:32:33 +03:00
committed by Olaoluwa Osuntokun
parent 0074643c10
commit ee2379775c
9 changed files with 135 additions and 70 deletions

View File

@@ -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