summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-19 14:24:59 +0000
committerErik Johnston <erik@matrix.org>2016-01-19 14:24:59 +0000
commit9654ee084867256ab77062761bc4e2c63254e275 (patch)
tree3150373f97ac4fe24bed0b1300af23b0a1cb8500 /synapse
parentExcept truthy values (diff)
downloadsynapse-9654ee084867256ab77062761bc4e2c63254e275.tar.xz
Return don't break
Diffstat (limited to 'synapse')
-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 c3a3b18733..efd686fa6e 100644
--- a/synapse/push/bulk_push_rule_evaluator.py
+++ b/synapse/push/bulk_push_rule_evaluator.py
@@ -123,7 +123,7 @@ def _condition_checker(evaluator, conditions, uid, display_name, cache):
         if _id:
             res = cache.get(_id, None)
             if res is False:
-                break
+                return False
             elif res is True:
                 continue