diff options
author | Erik Johnston <erik@matrix.org> | 2016-01-19 14:22:02 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-01-19 14:22:02 +0000 |
commit | 7ecd211163dd4eb624f2ad79aa11b2e6cb307274 (patch) | |
tree | 5c56be185a2d2331ed164e0eade03bdd91008ecb /synapse/push | |
parent | Merge pull request #504 from matrix-org/erikj/highlight_count (diff) | |
download | synapse-7ecd211163dd4eb624f2ad79aa11b2e6cb307274.tar.xz |
Except truthy values
Diffstat (limited to 'synapse/push')
-rw-r--r-- | synapse/push/bulk_push_rule_evaluator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py index b0b3a38db7..c3a3b18733 100644 --- a/synapse/push/bulk_push_rule_evaluator.py +++ b/synapse/push/bulk_push_rule_evaluator.py @@ -131,7 +131,7 @@ def _condition_checker(evaluator, conditions, uid, display_name, cache): if _id: cache[_id] = res - if res is False: + if not res: return False return True |