Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pkg/ottl] Add NewStatements to each context #18385

Merged
Prev Previous commit
Next Next commit
Keep original logic
TylerHelmuth committed Feb 13, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 56b65e500596a9c0eec781956032311656173c0a
3 changes: 1 addition & 2 deletions processor/routingprocessor/router.go
Original file line number Diff line number Diff line change
@@ -132,8 +132,7 @@ func (r *router[E, K]) registerRouteExporters(available map[component.ID]compone
func (r *router[E, K]) getStatementFrom(item RoutingTableItem) (*ottl.Statement[K], error) {
var statement *ottl.Statement[K]
if item.Statement != "" {
var err error
statement, err = r.parser.ParseStatement(item.Statement)
statement, err := r.parser.ParseStatement(item.Statement)
if err != nil {
return statement, err
}