mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-31 18:21:42 +02:00
lnwallet: fix linter errors introduced by updateLog move
This commit is contained in:
parent
51060aed45
commit
3e7866d85c
@ -101,6 +101,7 @@ func (u *updateLog) lookupHtlc(i uint64) *PaymentDescriptor {
|
||||
return nil
|
||||
}
|
||||
|
||||
//nolint:forcetypeassert
|
||||
return htlc.Value.(*PaymentDescriptor)
|
||||
}
|
||||
|
||||
@ -164,6 +165,7 @@ func compactLogs(ourLog, theirLog *updateLog,
|
||||
// chain, the skip it.
|
||||
if htlc.removeCommitHeightRemote == 0 ||
|
||||
htlc.removeCommitHeightLocal == 0 {
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
@ -187,7 +189,6 @@ func compactLogs(ourLog, theirLog *updateLog,
|
||||
logA.removeUpdate(htlc.LogIndex)
|
||||
logB.removeHtlc(htlc.ParentIndex)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user