summary refs log tree commit diff
path: root/synapse/rest/client/v1/room.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-07-09 13:01:42 +0100
committerGitHub <noreply@github.com>2020-07-09 13:01:42 +0100
commit53ee214f2f2ec3519ee37fe7cbcd0961e83678af (patch)
treecc85e8e9db9da4f357a9b2a23af9457b29f86c1b /synapse/rest/client/v1/room.py
parentImprove stacktraces from exceptions in background processes (#7808) (diff)
downloadsynapse-53ee214f2f2ec3519ee37fe7cbcd0961e83678af.tar.xz
`update_membership` declaration: now always returns an event id. (#7809)
Diffstat (limited to 'synapse/rest/client/v1/room.py')
-rw-r--r--synapse/rest/client/v1/room.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py
index 46811abbfa..f40ed82142 100644
--- a/synapse/rest/client/v1/room.py
+++ b/synapse/rest/client/v1/room.py
@@ -217,10 +217,8 @@ class RoomStateEventRestServlet(TransactionRestServlet):
             )
             event_id = event.event_id
 
-        ret = {}  # type: dict
-        if event_id:
-            set_tag("event_id", event_id)
-            ret = {"event_id": event_id}
+        set_tag("event_id", event_id)
+        ret = {"event_id": event_id}
         return 200, ret