core: fix ineffassign suggestion

Goreport:
  Line 467: warning: ineffectual assignment to persisted (ineffassign)
This commit is contained in:
Roman Khimov 2019-10-17 12:27:15 +03:00
parent e5ed7a7eb7
commit 1b5ea67737

View file

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