Expressions: Use enumerations rather than strings (#83741)
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user