Skip to content

Commit ad09b93

Browse files
committed
Remove unnecessary else statement
Signed-off-by: Federico Torres <[email protected]>
1 parent 076fba3 commit ad09b93

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

expfmt/text_parse.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,10 @@ func (p *TextParser) startLabelName() stateFn {
319319
p.parseError(fmt.Sprintf("unexpected end of metric value %q", p.currentByte))
320320
return nil
321321
}
322-
} else {
323-
p.parseError(fmt.Sprintf("expected '=' after label name, found %q", p.currentByte))
324-
p.currentLabel = nil
325-
return nil
326322
}
323+
p.parseError(fmt.Sprintf("expected '=' after label name, found %q", p.currentByte))
324+
p.currentLabel = nil
325+
return nil
327326
}
328327
p.currentLabelPair = &dto.LabelPair{Name: proto.String(p.currentToken.String())}
329328
if p.currentLabelPair.GetName() == string(model.MetricNameLabel) {

0 commit comments

Comments
 (0)