mirror of
https://github.com/tendermint/tendermint.git
synced 2026-05-28 10:00:21 +00:00
Fix metalinter errors
This commit is contained in:
2
Makefile
2
Makefile
@@ -52,7 +52,6 @@ metalinter: tools
|
||||
metalinter_test: tools
|
||||
@gometalinter --install
|
||||
gometalinter --vendor --deadline=600s --disable-all \
|
||||
--enable=aligncheck \
|
||||
--enable=deadcode \
|
||||
--enable=gas \
|
||||
--enable=goconst \
|
||||
@@ -71,6 +70,7 @@ metalinter_test: tools
|
||||
--enable=vetshadow \
|
||||
./...
|
||||
|
||||
# --enable=aligncheck \ <== disabled as not installed
|
||||
#--enable=dupl \
|
||||
#--enable=errcheck \
|
||||
#--enable=gocyclo \
|
||||
|
||||
@@ -137,16 +137,6 @@ func (app *PersistentDummyApplication) EndBlock(height uint64) (resEndBlock type
|
||||
return types.ResponseEndBlock{Diffs: app.changes}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// persist the last block info
|
||||
|
||||
var lastBlockKey = []byte("lastblock")
|
||||
|
||||
type LastBlockInfo struct {
|
||||
Height uint64
|
||||
AppHash []byte
|
||||
}
|
||||
|
||||
//---------------------------------------------
|
||||
// update validators
|
||||
|
||||
|
||||
Reference in New Issue
Block a user