diff options
author | Erik Johnston <erik@matrix.org> | 2019-09-25 17:00:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-25 17:00:23 +0100 |
commit | 50572db837f3e6a0869e9ec573e02d4af72548ea (patch) | |
tree | d56b9769573e1ab89b9304e93f0c31386f4f1451 | |
parent | Test background update (diff) | |
download | synapse-50572db837f3e6a0869e9ec573e02d4af72548ea.tar.xz |
Use if `is not None`
Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
-rw-r--r-- | synapse/storage/client_ips.py | 2 |
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( |