mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 06:17:27 -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 != ""{
|
if errMsg != ""{
|
||||||
errRange := mergeRanges(&$2, &$4)
|
errRange := mergeRanges(&$2, &$4)
|
||||||
yylex.(*parser).addParseErrf(errRange, errMsg)
|
yylex.(*parser).addParseErrf(errRange, "%s", errMsg)
|
||||||
}
|
}
|
||||||
|
|
||||||
numLit, _ := $3.(*NumberLiteral)
|
numLit, _ := $3.(*NumberLiteral)
|
||||||
|
|
|
@ -1384,7 +1384,7 @@ yydefault:
|
||||||
|
|
||||||
if errMsg != "" {
|
if errMsg != "" {
|
||||||
errRange := mergeRanges(&yyDollar[2].item, &yyDollar[4].item)
|
errRange := mergeRanges(&yyDollar[2].item, &yyDollar[4].item)
|
||||||
yylex.(*parser).addParseErrf(errRange, errMsg)
|
yylex.(*parser).addParseErrf(errRange, "%s", errMsg)
|
||||||
}
|
}
|
||||||
|
|
||||||
numLit, _ := yyDollar[3].node.(*NumberLiteral)
|
numLit, _ := yyDollar[3].node.(*NumberLiteral)
|
||||||
|
|
Loading…
Reference in a new issue