From 1b5ea67737f2a6da016fe062860c8766898a7301 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 17 Oct 2019 12:27:15 +0300 Subject: [PATCH] core: fix ineffassign suggestion Goreport: Line 467: warning: ineffectual assignment to persisted (ineffassign) --- pkg/core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index 03622aa9c..a20a6a5f1 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -464,7 +464,7 @@ func (bc *Blockchain) storeBlock(block *Block) error { func (bc *Blockchain) persist(ctx context.Context) error { var ( start = time.Now() - persisted = 0 + persisted int err error )