trie/trienode: remove unnecessary check in Summary (#30047)
This commit is contained in:
parent
98b5930d2d
commit
9298d2db88
@ -139,7 +139,6 @@ func (set *NodeSet) Size() (int, int) {
|
|||||||
func (set *NodeSet) Summary() string {
|
func (set *NodeSet) Summary() string {
|
||||||
var out = new(strings.Builder)
|
var out = new(strings.Builder)
|
||||||
fmt.Fprintf(out, "nodeset owner: %v\n", set.Owner)
|
fmt.Fprintf(out, "nodeset owner: %v\n", set.Owner)
|
||||||
if set.Nodes != nil {
|
|
||||||
for path, n := range set.Nodes {
|
for path, n := range set.Nodes {
|
||||||
// Deletion
|
// Deletion
|
||||||
if n.IsDeleted() {
|
if n.IsDeleted() {
|
||||||
@ -149,7 +148,6 @@ func (set *NodeSet) Summary() string {
|
|||||||
// Insertion or update
|
// Insertion or update
|
||||||
fmt.Fprintf(out, " [+/*]: %x -> %v \n", path, n.Hash)
|
fmt.Fprintf(out, " [+/*]: %x -> %v \n", path, n.Hash)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
for _, n := range set.Leaves {
|
for _, n := range set.Leaves {
|
||||||
fmt.Fprintf(out, "[leaf]: %v\n", n)
|
fmt.Fprintf(out, "[leaf]: %v\n", n)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user