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:
Slyghtning 2026-02-19 09:55:22 +01:00
parent 9800ee3891
commit f1c138abf5
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF

View file

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