Skip to content

Commit

Permalink
Match on all conditions not any
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Cattermole <[email protected]>
  • Loading branch information
adam-cattermole committed Sep 30, 2024
1 parent 57cb6d6 commit 68c25af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl Policy {

conditions
.iter()
.any(|condition| self.pattern_expression_applies(condition))
.all(|condition| self.pattern_expression_applies(condition))
}

fn pattern_expression_applies(&self, p_e: &PatternExpression) -> bool {
Expand Down

0 comments on commit 68c25af

Please sign in to comment.