Expressions: Use enumerations rather than strings (#83741)

This commit is contained in:
Ryan McKinley
2024-03-01 19:38:32 +02:00
committed by GitHub
parent c59ebfc60f
commit 5f6bf93dd5
9 changed files with 77 additions and 41 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ func (h *ExpressionQueryReader) ReadQuery(
}
func getReferenceVar(exp string, refId string) (string, error) {
exp = strings.TrimPrefix(exp, "%")
exp = strings.TrimPrefix(exp, "$")
if exp == "" {
return "", fmt.Errorf("no variable specified to reference for refId %v", refId)
}