Make None check explicit

pull/4/merge
Erik Johnston 8 years ago
parent f20cd34858
commit 52cd019a54
  1. 2
      synapse/storage/end_to_end_keys.py

@ -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…
Cancel
Save