From beb6c47e29820f24946aa0df3882af543f31c874 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 17 May 2022 23:10:25 -0400 Subject: [PATCH] lint fix --- internal/state/execution_test.go | 2 +- internal/store/store.go | 3 +-- types/vote_set.go | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/state/execution_test.go b/internal/state/execution_test.go index 6b50712c5..5fb4dc297 100644 --- a/internal/state/execution_test.go +++ b/internal/state/execution_test.go @@ -1096,7 +1096,7 @@ func TestCreateProposalAbsentVoteExtensions(t *testing.T) { stripSignatures(lastCommit) if testCase.expectPanic { require.Panics(t, func() { - blockExec.CreateProposalBlock(ctx, testCase.height, state, lastCommit, pa) + blockExec.CreateProposalBlock(ctx, testCase.height, state, lastCommit, pa) //nolint:errcheck }) } else { _, err = blockExec.CreateProposalBlock(ctx, testCase.height, state, lastCommit, pa) diff --git a/internal/store/store.go b/internal/store/store.go index 9f47dfbe7..1a500fb00 100644 --- a/internal/store/store.go +++ b/internal/store/store.go @@ -8,7 +8,6 @@ import ( "github.com/gogo/protobuf/proto" "github.com/google/orderedcode" - db "github.com/tendermint/tm-db" dbm "github.com/tendermint/tm-db" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" @@ -519,7 +518,7 @@ func (bs *BlockStore) SaveBlockWithExtendedCommit(block *types.Block, blockParts } } -func (bs *BlockStore) saveBlockToBatch(batch db.Batch, block *types.Block, blockParts *types.PartSet, seenCommit *types.Commit) error { +func (bs *BlockStore) saveBlockToBatch(batch dbm.Batch, block *types.Block, blockParts *types.PartSet, seenCommit *types.Commit) error { if block == nil { panic("BlockStore can only save a non-nil block") } diff --git a/types/vote_set.go b/types/vote_set.go index dc00c8369..becc6bd6b 100644 --- a/types/vote_set.go +++ b/types/vote_set.go @@ -71,7 +71,7 @@ type VoteSet struct { } // NewVoteSet instantiates all fields of a new vote set. This constructor required -// that no vote extension data be present on the votes taht are added to the set. +// that no vote extension data be present on the votes that are added to the set. func NewVoteSet(chainID string, height int64, round int32, signedMsgType tmproto.SignedMsgType, valSet *ValidatorSet) *VoteSet { if height == 0 {