File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -139,16 +139,14 @@ func (set *NodeSet) Size() (int, int) {
139
139
func (set * NodeSet ) Summary () string {
140
140
var out = new (strings.Builder )
141
141
fmt .Fprintf (out , "nodeset owner: %v\n " , set .Owner )
142
- if set .Nodes != nil {
143
- for path , n := range set .Nodes {
144
- // Deletion
145
- if n .IsDeleted () {
146
- fmt .Fprintf (out , " [-]: %x\n " , path )
147
- continue
148
- }
149
- // Insertion or update
150
- fmt .Fprintf (out , " [+/*]: %x -> %v \n " , path , n .Hash )
142
+ for path , n := range set .Nodes {
143
+ // Deletion
144
+ if n .IsDeleted () {
145
+ fmt .Fprintf (out , " [-]: %x\n " , path )
146
+ continue
151
147
}
148
+ // Insertion or update
149
+ fmt .Fprintf (out , " [+/*]: %x -> %v \n " , path , n .Hash )
152
150
}
153
151
for _ , n := range set .Leaves {
154
152
fmt .Fprintf (out , "[leaf]: %v\n " , n )
You can’t perform that action at this time.
0 commit comments