mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-12 08:34:43 +00:00
Fix infinite loop in NotRule.Evaluate
This commit is contained in:
parent
84ce6f262a
commit
becd8935be
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ type NotRule Rules
|
||||||
|
|
||||||
// Evaluate NotRule will return true if and only if ChildRule evaluates to false
|
// Evaluate NotRule will return true if and only if ChildRule evaluates to false
|
||||||
func (r NotRule) Evaluate(headers, query, payload *map[string]interface{}, body *[]byte) bool {
|
func (r NotRule) Evaluate(headers, query, payload *map[string]interface{}, body *[]byte) bool {
|
||||||
return !r.Evaluate(headers, query, payload, body)
|
return !Rules(r).Evaluate(headers, query, payload, body)
|
||||||
}
|
}
|
||||||
|
|
||||||
// MatchRule will evaluate to true based on the type
|
// MatchRule will evaluate to true based on the type
|
||||||
|
|
Loading…
Add table
Reference in a new issue