Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Actually check for None rather falsey
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed May 15, 2019
1 parent e6459c2 commit 5be34fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/storage/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ def get_relations_for_event(
where_clause = ["relates_to_id = ?"]
where_args = [event_id]

if relation_type:
if relation_type is not None:
where_clause.append("relation_type = ?")
where_args.append(relation_type)

if event_type:
if event_type is not None:
where_clause.append("type = ?")
where_args.append(event_type)

Expand Down

0 comments on commit 5be34fc

Please sign in to comment.