core: fix ineffassign suggestion
Goreport: Line 467: warning: ineffectual assignment to persisted (ineffassign)
This commit is contained in:
parent
e5ed7a7eb7
commit
1b5ea67737
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue