mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
PromQL: avoid new 'go vet' check
Error was 'non-constant format string in call'. See https://tip.golang.org/doc/go1.24#vet Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
41fb12a4d4
commit
3e1ff078b3
|
@ -487,7 +487,7 @@ matrix_selector : expr LEFT_BRACKET number_duration_literal RIGHT_BRACKET
|
|||
|
||||
if errMsg != ""{
|
||||
errRange := mergeRanges(&$2, &$4)
|
||||
yylex.(*parser).addParseErrf(errRange, errMsg)
|
||||
yylex.(*parser).addParseErrf(errRange, "%s", errMsg)
|
||||
}
|
||||
|
||||
numLit, _ := $3.(*NumberLiteral)
|
||||
|
|
|
@ -1384,7 +1384,7 @@ yydefault:
|
|||
|
||||
if errMsg != "" {
|
||||
errRange := mergeRanges(&yyDollar[2].item, &yyDollar[4].item)
|
||||
yylex.(*parser).addParseErrf(errRange, errMsg)
|
||||
yylex.(*parser).addParseErrf(errRange, "%s", errMsg)
|
||||
}
|
||||
|
||||
numLit, _ := yyDollar[3].node.(*NumberLiteral)
|
||||
|
|
Loading…
Reference in a new issue