From 853a69141a317c130d166d98a9c9aa8e2ddc8d20 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Thu, 26 Dec 2019 19:23:49 +0100 Subject: [PATCH] trie: linter nitpicks --- trie/pure_committer.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trie/pure_committer.go b/trie/pure_committer.go index fdf0760cdb..30404b217d 100644 --- a/trie/pure_committer.go +++ b/trie/pure_committer.go @@ -151,7 +151,7 @@ func (h *committer) store(n node, db *Database, force bool, hasVnodeChildren boo // Larger nodes are replaced by their hash and stored in the database. var ( hash, _ = n.cache() - size = 0 + size int ) if hash == nil { if vn, ok := n.(valueNode); ok { @@ -261,7 +261,6 @@ func estimateSize(n node) int { panic(fmt.Sprintf("node type %T", n)) } - return 0 } /**