summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-02-08 16:04:29 +0000
committerErik Johnston <erik@matrix.org>2017-02-08 16:04:29 +0000
commit52cd019a544b49469ce588c42a59100e6384d362 (patch)
treee740ea24a65a1bde242efb12e9f8074638653ba3 /synapse/storage
parentMerge pull request #1892 from matrix-org/erikj/rejection_fwd_extrem (diff)
downloadsynapse-52cd019a544b49469ce588c42a59100e6384d362.tar.xz
Make None check explicit
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/end_to_end_keys.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/end_to_end_keys.py b/synapse/storage/end_to_end_keys.py
index 2040e022fa..b9f1365f92 100644
--- a/synapse/storage/end_to_end_keys.py
+++ b/synapse/storage/end_to_end_keys.py
@@ -93,7 +93,7 @@ class EndToEndKeyStore(SQLBaseStore):
             query_clause = "user_id = ?"
             query_params.append(user_id)
 
-            if device_id:
+            if device_id is not None:
                 query_clause += " AND device_id = ?"
                 query_params.append(device_id)