From 9607515aed13406a8550e8072cdaf53d4f1e437b 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(-) (limited to 'pkg/state') 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