Fix up #10851 to be golang 1.3 compatible.

See also #11016
This commit is contained in:
Joe Beda 2015-07-09 14:53:57 -07:00
parent ffc5a86098
commit 31de03c18a

View File

@ -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")