Merge pull request #11017 from jbeda/fix-1.3

Fix up #10851 to be golang 1.3 compatible.
This commit is contained in:
Victor Marmol 2015-07-09 15:37:15 -07:00
commit 7031fd2cd8

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