mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-12 22:22:36 +02:00
lnd: fix gosimple warnings
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
f5fd4138a0
commit
8fb54782e2
@ -88,14 +88,10 @@ func (i *invoiceRegistry) AddInvoice(invoice *channeldb.Invoice) error {
|
||||
}))
|
||||
|
||||
// TODO(roasbeef): also check in memory for quick lookups/settles?
|
||||
if err := i.cdb.AddInvoice(invoice); err != nil {
|
||||
return err
|
||||
}
|
||||
return i.cdb.AddInvoice(invoice)
|
||||
|
||||
// TODO(roasbeef): re-enable?
|
||||
//go i.notifyClients(invoice, false)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// lookupInvoice looks up an invoice by its payment hash (R-Hash), if found
|
||||
|
Reference in New Issue
Block a user