Use if `is not None`

Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
pull/6089/head
Erik Johnston 2019-09-25 17:00:23 +01:00 committed by GitHub
parent acb62a7cc6
commit 50572db837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(