chore: fix linter errors (#2381)

* chore: fix linter errors

* chore: update

* chore: update
This commit is contained in:
boojack
2023-10-13 09:53:02 -05:00
committed by GitHub
parent ed1ff11e80
commit bacc529391
2 changed files with 5 additions and 7 deletions

View File

@ -200,7 +200,11 @@ func parseListMemosFilter(expression string) (*ListMemosFilter, error) {
return nil, errors.Errorf("found issue %v", issues)
}
filter := &ListMemosFilter{}
callExpr := ast.Expr().GetCallExpr()
expr, err := cel.AstToParsedExpr(ast)
if err != nil {
return nil, err
}
callExpr := expr.GetExpr().GetCallExpr()
findField(callExpr, filter)
return filter, nil
}