stateify: Fix pretty print not printing odd numbered fields.

PiperOrigin-RevId: 327902182
This commit is contained in:
Ting-Yu Wang 2020-08-21 17:32:19 -07:00 committed by gVisor bot
parent 46d11a767c
commit 9607515aed
1 changed files with 0 additions and 1 deletions

View File

@ -148,7 +148,6 @@ func format(graph uint64, depth int, encoded wire.Object, html bool) (string, bo
element, ok := format(graph, depth+1, *x.Field(i), html)
allZero = allZero && !ok
items = append(items, fmt.Sprintf("\t%d: %s,", i, element))
i++
}
items = append(items, "}")
return strings.Join(items, tabs), !allZero