lnwallet: fix linter errors introduced by updateLog move

This commit is contained in:
Keagan McClelland 2024-07-30 10:17:47 -07:00
parent 51060aed45
commit 3e7866d85c
No known key found for this signature in database
GPG Key ID: FA7E65C951F12439

View File

@ -101,6 +101,7 @@ func (u *updateLog) lookupHtlc(i uint64) *PaymentDescriptor {
return nil return nil
} }
//nolint:forcetypeassert
return htlc.Value.(*PaymentDescriptor) return htlc.Value.(*PaymentDescriptor)
} }
@ -164,6 +165,7 @@ func compactLogs(ourLog, theirLog *updateLog,
// chain, the skip it. // chain, the skip it.
if htlc.removeCommitHeightRemote == 0 || if htlc.removeCommitHeightRemote == 0 ||
htlc.removeCommitHeightLocal == 0 { htlc.removeCommitHeightLocal == 0 {
continue continue
} }
@ -187,7 +189,6 @@ func compactLogs(ourLog, theirLog *updateLog,
logA.removeUpdate(htlc.LogIndex) logA.removeUpdate(htlc.LogIndex)
logB.removeHtlc(htlc.ParentIndex) logB.removeHtlc(htlc.ParentIndex)
} }
} }
} }