invoices: if there are no invoices make gc noop
This commit is contained in:
2 files changed
+6
-3
No files matched your search
@@ -2139,14 +2139,14 @@ func (d *DB) DeleteCanceledInvoices(_ context.Context) error {
|
||||
invoiceIndexBucket,
|
||||
)
|
||||
if invoiceIndex == nil {
|
||||
return invpkg.ErrNoInvoicesCreated
|
||||
return nil
|
||||
}
|
||||
|
||||
invoiceAddIndex := invoices.NestedReadWriteBucket(
|
||||
addIndexBucket,
|
||||
)
|
||||
if invoiceAddIndex == nil {
|
||||
return invpkg.ErrNoInvoicesCreated
|
||||
return nil
|
||||
}
|
||||
|
||||
payAddrIndex := tx.ReadWriteBucket(payAddrIndexBucket)
|
||||
|
||||
Reference in new issue
Block a user