mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 03:50:20 +00:00
Use if is not None
Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
parent
acb62a7cc6
commit
50572db837
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ class ClientIpStore(background_updates.BackgroundUpdateStore):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
keyvalues = {"user_id": user_id}
|
keyvalues = {"user_id": user_id}
|
||||||
if device_id:
|
if device_id is not None:
|
||||||
keyvalues["device_id"] = device_id
|
keyvalues["device_id"] = device_id
|
||||||
|
|
||||||
res = yield self._simple_select_list(
|
res = yield self._simple_select_list(
|
||||||
|
|
Loading…
Reference in a new issue