linter: fix nolintlint warnings (#6257)

This commit is contained in:
Callum Waters
2021-03-19 10:59:14 +01:00
committed by GitHub
parent dd84867e2b
commit 6f6083dae3
6 changed files with 10 additions and 7 deletions
+3
View File
@@ -64,14 +64,17 @@ type mockBlockStore struct {
blocks map[int64]*types.Block
}
//nolint:unused
func (ml *mockBlockStore) Height() int64 {
return int64(len(ml.blocks))
}
//nolint:unused
func (ml *mockBlockStore) LoadBlock(height int64) *types.Block {
return ml.blocks[height]
}
//nolint:unused
func (ml *mockBlockStore) SaveBlock(block *types.Block, part *types.PartSet, commit *types.Commit) {
ml.blocks[block.Height] = block
}