mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
deposit: remove dead code in reconcileDeposits
Remove unreachable error check after filterNewDeposits which does not return an error. The err variable was already handled from the ListUnspent call above and could never be non-nil at this point.
This commit is contained in:
parent
9800ee3891
commit
f1c138abf5
1 changed files with 0 additions and 4 deletions
|
|
@ -239,10 +239,6 @@ func (m *Manager) reconcileDeposits(ctx context.Context) error {
|
|||
}
|
||||
|
||||
newDeposits := m.filterNewDeposits(utxos)
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to filter new deposits: %w", err)
|
||||
}
|
||||
|
||||
if len(newDeposits) == 0 {
|
||||
log.Tracef("No new deposits...")
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue