trie: prefer nil slices over zero-length slices (#19084)
This commit is contained in:
committed by
Felix Lange
parent
f1537b774c
commit
514a9472ad
@ -809,7 +809,7 @@ func (db *Database) verifyIntegrity() {
|
||||
db.accumulate(child, reachable)
|
||||
}
|
||||
// Find any unreachable but cached nodes
|
||||
unreachable := []string{}
|
||||
var unreachable []string
|
||||
for hash, node := range db.dirties {
|
||||
if _, ok := reachable[hash]; !ok {
|
||||
unreachable = append(unreachable, fmt.Sprintf("%x: {Node: %v, Parents: %d, Prev: %x, Next: %x}",
|
||||
|
Reference in New Issue
Block a user