summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTing-Yu Wang <anivia@google.com>2020-08-21 17:32:19 -0700
committergVisor bot <gvisor-bot@google.com>2020-08-21 17:34:26 -0700
commit9607515aed13406a8550e8072cdaf53d4f1e437b (patch)
tree8d5ff55831e04489df66ccc5d27e01514ed0d9d3
parent46d11a767ccfcd6f7af0d10ccefc08ec9e2df5f4 (diff)
stateify: Fix pretty print not printing odd numbered fields.
PiperOrigin-RevId: 327902182
-rw-r--r--pkg/state/pretty/pretty.go1
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