Skip to content

Commit 7cdecbf

Browse files
Remove braces from suggestion (#3568)
This commit removes the open and close braces from the suggestion as braces do not make sense in the configuration file. This does not change the behavior of the suggestion whatsoever as these are optional. Signed-off-by: George Robinson <[email protected]>
1 parent b5b5a1d commit 7cdecbf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

matchers/compat/parse.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,12 @@ func fallbackMatchersParser(l log.Logger) matchersParser {
152152
return nil, invalidErr
153153
}
154154
var sb strings.Builder
155-
sb.WriteRune('{')
156155
for i, n := range m {
157156
sb.WriteString(n.String())
158157
if i < len(m)-1 {
159158
sb.WriteRune(',')
160159
}
161160
}
162-
sb.WriteRune('}')
163161
suggestion := sb.String()
164162
// The input is valid in the old pkg/labels parser, but not the
165163
// new matchers/parse parser.

0 commit comments

Comments
 (0)