summary refs log tree commit diff
path: root/synapse/push
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-19 14:22:02 +0000
committerErik Johnston <erik@matrix.org>2016-01-19 14:22:02 +0000
commit7ecd211163dd4eb624f2ad79aa11b2e6cb307274 (patch)
tree5c56be185a2d2331ed164e0eade03bdd91008ecb /synapse/push
parentMerge pull request #504 from matrix-org/erikj/highlight_count (diff)
downloadsynapse-7ecd211163dd4eb624f2ad79aa11b2e6cb307274.tar.xz
Except truthy values
Diffstat (limited to 'synapse/push')
-rw-r--r--synapse/push/bulk_push_rule_evaluator.py2
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