Skip to content

Commit 82ff360

Browse files
committed
lnwallet: fix linter errors resulting from commitmentChain move.
1 parent 4cf7555 commit 82ff360

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lnwallet/commitment_chain.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ func (s *commitmentChain) advanceTail() {
4242

4343
// tip returns the latest commitment added to the chain.
4444
func (s *commitmentChain) tip() *commitment {
45+
//nolint:forcetypeassert
4546
return s.commitments.Back().Value.(*commitment)
4647
}
4748

4849
// tail returns the lowest unrevoked commitment transaction in the chain.
4950
func (s *commitmentChain) tail() *commitment {
51+
//nolint:forcetypeassert
5052
return s.commitments.Front().Value.(*commitment)
5153
}
5254

0 commit comments

Comments
 (0)