Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
fix code bug
Browse files Browse the repository at this point in the history
  • Loading branch information
4ra1n committed Sep 8, 2024
1 parent 0d609d9 commit 50ed10f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ func parse(ctx context.Context, c *client.HttpClient, root map[string]interface{
rule.Expression = expr
// OUTPUT
rule.Output = &base.Output{}
output, ok := ruleItems["output"]
pocOutput, ok := ruleItems["output"]
if ok {
items, isMap := output.(map[string]interface{})
items, isMap := pocOutput.(map[string]interface{})
if !isMap {
return nil, xerr.Wrap(errors.New("output must be a map"))
}
Expand Down

0 comments on commit 50ed10f

Please sign in to comment.