mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-09 09:26:50 +00:00
Use if not results rather than len, as per feedback.
This commit is contained in:
parent
6fab7bd2c1
commit
2a45f3d448
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ class PushRuleStore(SQLBaseStore):
|
||||||
{'user_name': user_name, 'rule_id': rule_id},
|
{'user_name': user_name, 'rule_id': rule_id},
|
||||||
['enabled']
|
['enabled']
|
||||||
)
|
)
|
||||||
if len(results) == 0:
|
if not results:
|
||||||
defer.returnValue(True)
|
defer.returnValue(True)
|
||||||
defer.returnValue(results[0])
|
defer.returnValue(results[0])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue