From 82ff360ad2e893533b782a0a233a98b94792d490 Mon Sep 17 00:00:00 2001 From: Keagan McClelland Date: Tue, 30 Jul 2024 10:22:23 -0700 Subject: [PATCH] lnwallet: fix linter errors resulting from commitmentChain move. --- lnwallet/commitment_chain.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lnwallet/commitment_chain.go b/lnwallet/commitment_chain.go index 23887815b..7894e9e3f 100644 --- a/lnwallet/commitment_chain.go +++ b/lnwallet/commitment_chain.go @@ -42,11 +42,13 @@ func (s *commitmentChain) advanceTail() { // tip returns the latest commitment added to the chain. func (s *commitmentChain) tip() *commitment { + //nolint:forcetypeassert return s.commitments.Back().Value.(*commitment) } // tail returns the lowest unrevoked commitment transaction in the chain. func (s *commitmentChain) tail() *commitment { + //nolint:forcetypeassert return s.commitments.Front().Value.(*commitment) }