diff --git a/promql/engine.go b/promql/engine.go index 510683b09..e97a6b86d 100644 --- a/promql/engine.go +++ b/promql/engine.go @@ -400,8 +400,7 @@ func (ng *Engine) validateOpts(expr parser.Expr) error { return nil } - atModifierUsed := false - negativeOffsetUsed := false + var atModifierUsed, negativeOffsetUsed bool var validationErr error parser.Inspect(expr, func(node parser.Node, path []parser.Node) error {