diff options
author | Ting-Yu Wang <anivia@google.com> | 2020-08-21 17:32:19 -0700 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2020-09-09 17:53:10 -0700 |
commit | b9aa0fd7dacc84bbaffbda41e3b40aa4e876b3c1 (patch) | |
tree | 8d5ff55831e04489df66ccc5d27e01514ed0d9d3 /pkg/state | |
parent | 8bf0bd8ab97958bb43bb0388f1f40965cf989207 (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 |