We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 076fba3 commit ad09b93Copy full SHA for ad09b93
expfmt/text_parse.go
@@ -319,11 +319,10 @@ func (p *TextParser) startLabelName() stateFn {
319
p.parseError(fmt.Sprintf("unexpected end of metric value %q", p.currentByte))
320
return nil
321
}
322
- } else {
323
- p.parseError(fmt.Sprintf("expected '=' after label name, found %q", p.currentByte))
324
- p.currentLabel = nil
325
- return nil
326
+ p.parseError(fmt.Sprintf("expected '=' after label name, found %q", p.currentByte))
+ p.currentLabel = nil
+ return nil
327
328
p.currentLabelPair = &dto.LabelPair{Name: proto.String(p.currentToken.String())}
329
if p.currentLabelPair.GetName() == string(model.MetricNameLabel) {
0 commit comments