Browse Source

Fix metalinter errors

pull/1780/head
Ethan Frey 7 years ago
parent
commit
7aa00e9ddd
2 changed files with 1 additions and 11 deletions
  1. +1
    -1
      Makefile
  2. +0
    -10
      example/dummy/persistent_dummy.go

+ 1
- 1
Makefile View File

@ -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 \


+ 0
- 10
example/dummy/persistent_dummy.go View File

@ -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


Loading…
Cancel
Save