From 31de03c18a9c6a9b7c3633034bfd1e6865d44e1c Mon Sep 17 00:00:00 2001 From: Joe Beda Date: Thu, 9 Jul 2015 14:53:57 -0700 Subject: [PATCH] Fix up #10851 to be golang 1.3 compatible. See also #11016 --- pkg/kubectl/resource_printer.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/kubectl/resource_printer.go b/pkg/kubectl/resource_printer.go index 030face3f86..a64b7bfbbab 100644 --- a/pkg/kubectl/resource_printer.go +++ b/pkg/kubectl/resource_printer.go @@ -973,7 +973,10 @@ func appendLabels(itemLabels map[string]string, columnLabels []string) string { func appendLabelTabs(columnLabels []string) string { var buffer bytes.Buffer - for range columnLabels { + for i := range columnLabels { + // NB: This odd dance is to make the loop both compatible with go 1.3 and + // pass `gofmt -s` + _ = i buffer.WriteString("\t") } buffer.WriteString("\n")