lnd: fix gosimple warnings

This commit is contained in:
Andrey Samokhvalov
2017-02-23 21:59:50 +03:00
committed by Olaoluwa Osuntokun
parent f5fd4138a0
commit 8fb54782e2
30 changed files with 73 additions and 319 deletions

View File

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