summary refs log tree commit diff
path: root/synapse/handlers/room_member.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-01-25 11:22:14 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2019-01-25 11:22:14 +0000
commit516456b763c7652b1401ad502bb6b621f822b15a (patch)
treeb1ce7f7138bf07e1e3e1832d7b0dac0e96f015fd /synapse/handlers/room_member.py
parentMove room_tag declaration to be closer to its use (diff)
downloadsynapse-516456b763c7652b1401ad502bb6b621f822b15a.tar.xz
Remove unnecessary null check
Diffstat (limited to 'synapse/handlers/room_member.py')
-rw-r--r--synapse/handlers/room_member.py13
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(