mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-26 17:19:17 +08:00
Merge pull request #16 from moorereason/fix-notrule
Fix infinite loop in NotRule.Evaluate
This commit is contained in:
+1
-1
@@ -225,7 +225,7 @@ type NotRule Rules
|
||||
|
||||
// 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 {
|
||||
return !r.Evaluate(headers, query, payload, body)
|
||||
return !Rules(r).Evaluate(headers, query, payload, body)
|
||||
}
|
||||
|
||||
// MatchRule will evaluate to true based on the type
|
||||
|
||||
Reference in New Issue
Block a user