From 3e7866d85ce82e09b04f63e256acb34543f9b001 Mon Sep 17 00:00:00 2001 From: Keagan McClelland Date: Tue, 30 Jul 2024 10:17:47 -0700 Subject: [PATCH] lnwallet: fix linter errors introduced by updateLog move --- lnwallet/update_log.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnwallet/update_log.go b/lnwallet/update_log.go index 0256bbd60..5cb39ef1e 100644 --- a/lnwallet/update_log.go +++ b/lnwallet/update_log.go @@ -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) } - } }