Skip to content

Commit

Permalink
Update pkg/expressions/cel/expressions.go
Browse files Browse the repository at this point in the history
Co-authored-by: Guilherme Cassolato <[email protected]>
  • Loading branch information
alexsnaps and guicassolato authored Oct 30, 2024
1 parent 821e220 commit 55742ff
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/expressions/cel/expressions.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@ func (e *Expression) ResolveFor(json string) (interface{}, error) {
return nil, err
}

if jsonVal, err := ValueToJSON(result); err != nil {
return nil, err
} else {
return jsonVal, nil
}
return ValueToJSON(result)
}

func (e *StringExpression) ResolveFor(json string) (interface{}, error) {
Expand Down

0 comments on commit 55742ff

Please sign in to comment.