summary refs log tree commit diff
path: root/synapse/storage/client_ips.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-09-25 17:00:23 +0100
committerGitHub <noreply@github.com>2019-09-25 17:00:23 +0100
commit50572db837f3e6a0869e9ec573e02d4af72548ea (patch)
treed56b9769573e1ab89b9304e93f0c31386f4f1451 /synapse/storage/client_ips.py
parentTest background update (diff)
downloadsynapse-50572db837f3e6a0869e9ec573e02d4af72548ea.tar.xz
Use if `is not None`
Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Diffstat (limited to 'synapse/storage/client_ips.py')
-rw-r--r--synapse/storage/client_ips.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/client_ips.py b/synapse/storage/client_ips.py
index a4e6d9dbe7..8996689744 100644
--- a/synapse/storage/client_ips.py
+++ b/synapse/storage/client_ips.py
@@ -393,7 +393,7 @@ class ClientIpStore(background_updates.BackgroundUpdateStore):
         """
 
         keyvalues = {"user_id": user_id}
-        if device_id:
+        if device_id is not None:
             keyvalues["device_id"] = device_id
 
         res = yield self._simple_select_list(