diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-01-25 11:22:14 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-01-25 11:22:14 +0000 |
commit | 516456b763c7652b1401ad502bb6b621f822b15a (patch) | |
tree | b1ce7f7138bf07e1e3e1832d7b0dac0e96f015fd /synapse/handlers/room_member.py | |
parent | Move room_tag declaration to be closer to its use (diff) | |
download | synapse-516456b763c7652b1401ad502bb6b621f822b15a.tar.xz |
Remove unnecessary null check
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/room_member.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py index 67c601b696..3d4500fb18 100644 --- a/synapse/handlers/room_member.py +++ b/synapse/handlers/room_member.py @@ -287,13 +287,12 @@ class RoomMemberHandler(object): user_id, old_room_id, ) - if room_tags: - # Copy each room tag to the new room - for tag in room_tags.keys(): - tag_content = room_tags[tag] - yield self.store.add_tag_to_room( - user_id, room_id, tag, tag_content - ) + # Copy each room tag to the new room + for tag in room_tags.keys(): + tag_content = room_tags[tag] + yield self.store.add_tag_to_room( + user_id, room_id, tag, tag_content + ) @defer.inlineCallbacks def update_membership( |