diff options
author | Ting-Yu Wang <anivia@google.com> | 2020-08-21 17:32:19 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-21 17:34:26 -0700 |
commit | 9607515aed13406a8550e8072cdaf53d4f1e437b (patch) | |
tree | 8d5ff55831e04489df66ccc5d27e01514ed0d9d3 /pkg/state | |
parent | 46d11a767ccfcd6f7af0d10ccefc08ec9e2df5f4 (diff) |
stateify: Fix pretty print not printing odd numbered fields.
PiperOrigin-RevId: 327902182
Diffstat (limited to 'pkg/state')
-rw-r--r-- | pkg/state/pretty/pretty.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/pkg/state/pretty/pretty.go b/pkg/state/pretty/pretty.go index cf37aaa49..1375fcc38 100644 --- a/pkg/state/pretty/pretty.go +++ b/pkg/state/pretty/pretty.go @@ -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 |