trie: linter nitpicks

This commit is contained in:
Martin Holst Swende 2019-12-26 19:23:49 +01:00
parent 3a34e93c6c
commit 853a69141a
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -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. // Larger nodes are replaced by their hash and stored in the database.
var ( var (
hash, _ = n.cache() hash, _ = n.cache()
size = 0 size int
) )
if hash == nil { if hash == nil {
if vn, ok := n.(valueNode); ok { if vn, ok := n.(valueNode); ok {
@ -261,7 +261,6 @@ func estimateSize(n node) int {
panic(fmt.Sprintf("node type %T", n)) panic(fmt.Sprintf("node type %T", n))
} }
return 0
} }
/** /**