From 7aa00e9ddd0ecb7e5dc3f003d61a834795c532d8 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Thu, 19 Oct 2017 14:48:07 +0200 Subject: [PATCH] Fix metalinter errors --- Makefile | 2 +- example/dummy/persistent_dummy.go | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Makefile b/Makefile index d097ae72b..8b621a9a4 100644 --- a/Makefile +++ b/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 \ diff --git a/example/dummy/persistent_dummy.go b/example/dummy/persistent_dummy.go index 94ce85adf..20b68b9aa 100644 --- a/example/dummy/persistent_dummy.go +++ b/example/dummy/persistent_dummy.go @@ -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