From b9aa0fd7dacc84bbaffbda41e3b40aa4e876b3c1 Mon Sep 17 00:00:00 2001 From: Ting-Yu Wang Date: Fri, 21 Aug 2020 17:32:19 -0700 Subject: stateify: Fix pretty print not printing odd numbered fields. PiperOrigin-RevId: 327902182 --- pkg/state/pretty/pretty.go | 1 - 1 file changed, 1 deletion(-) 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 -- cgit v1.2.3