lib/storage: fix printing tag filters in TagFilters.String

This commit is contained in:
Aliaksandr Valialkin 2019-12-03 14:25:07 +02:00
parent c04f60db35
commit 6eb698d1cc

View file

@ -82,7 +82,7 @@ func (tfs *TagFilters) String() string {
} }
fmt.Fprintf(&bb, "{%s", tfs.tfs[0].String()) fmt.Fprintf(&bb, "{%s", tfs.tfs[0].String())
for i := range tfs.tfs[1:] { for i := range tfs.tfs[1:] {
fmt.Fprintf(&bb, ", %s", tfs.tfs[i].String()) fmt.Fprintf(&bb, ", %s", tfs.tfs[i+1].String())
} }
fmt.Fprintf(&bb, "}") fmt.Fprintf(&bb, "}")
return bb.String() return bb.String()