From 2b68c272e9fd7819437e3b82bf841839f2f19b48 Mon Sep 17 00:00:00 2001 From: George Robinson Date: Tue, 24 Oct 2023 21:12:44 +0100 Subject: [PATCH] Remove braces from suggestion 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. --- matchers/compat/parse.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/matchers/compat/parse.go b/matchers/compat/parse.go index 4d2794d36e..1e8758b1ce 100644 --- a/matchers/compat/parse.go +++ b/matchers/compat/parse.go @@ -152,14 +152,12 @@ func fallbackMatchersParser(l log.Logger) matchersParser { return nil, invalidErr } var sb strings.Builder - sb.WriteRune('{') for i, n := range m { sb.WriteString(n.String()) if i < len(m)-1 { sb.WriteRune(',') } } - sb.WriteRune('}') suggestion := sb.String() // The input is valid in the old pkg/labels parser, but not the // new matchers/parse parser.