Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Meni Yakove <[email protected]>
  • Loading branch information
amp-rh and myakove authored Jan 17, 2024
1 parent 2994035 commit 53bce6e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cli/objects/failure_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,5 @@ def matches_failure(self, failure: Failure) -> bool:
return (
hasattr(self, "step")
and fnmatch.fnmatch(failure.step, self.step)
and (
(failure.failure_type == self.failure_type)
or self.failure_type == "all"
)
and failure.failure_type in (self.failure_type, "all")
)

0 comments on commit 53bce6e

Please sign in to comment.