mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Make None check explicit
This commit is contained in:
parent
f20cd34858
commit
52cd019a54
@ -93,7 +93,7 @@ class EndToEndKeyStore(SQLBaseStore):
|
|||||||
query_clause = "user_id = ?"
|
query_clause = "user_id = ?"
|
||||||
query_params.append(user_id)
|
query_params.append(user_id)
|
||||||
|
|
||||||
if device_id:
|
if device_id is not None:
|
||||||
query_clause += " AND device_id = ?"
|
query_clause += " AND device_id = ?"
|
||||||
query_params.append(device_id)
|
query_params.append(device_id)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user