expr: fix active analyzer listing
This commit is contained in:
+1
-6
@@ -266,14 +266,9 @@ func CompileExprRules(rules []ExprRule, ans []analyzer.Analyzer, mods []modifier
|
|||||||
}
|
}
|
||||||
compiledRules = append(compiledRules, cr)
|
compiledRules = append(compiledRules, cr)
|
||||||
}
|
}
|
||||||
// Convert the analyzer map to a list.
|
|
||||||
var depAns []analyzer.Analyzer
|
|
||||||
for _, a := range depAnMap {
|
|
||||||
depAns = append(depAns, a)
|
|
||||||
}
|
|
||||||
return &exprRuleset{
|
return &exprRuleset{
|
||||||
Rules: compiledRules,
|
Rules: compiledRules,
|
||||||
Ans: depAns,
|
Ans: ans,
|
||||||
Logger: config.Logger,
|
Logger: config.Logger,
|
||||||
GeoMatcher: geoMatcher,
|
GeoMatcher: geoMatcher,
|
||||||
stats: stats,
|
stats: stats,
|
||||||
|
|||||||
Reference in New Issue
Block a user