summary refs log tree commit diff
path: root/synapse/rest/client/v1
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-02-03 15:04:51 +0000
committerDavid Baker <dave@matrix.org>2016-02-03 15:04:51 +0000
commit156cea5b45acac88a030f5b469c1921a2f3573cc (patch)
tree7d277489ca454ce1c14a106694d66b0a05615c9c /synapse/rest/client/v1
parentDon't return null if profile display name / avatar url isn't set: omit them i... (diff)
downloadsynapse-156cea5b45acac88a030f5b469c1921a2f3573cc.tar.xz
No braces here
Diffstat (limited to 'synapse/rest/client/v1')
-rw-r--r--synapse/rest/client/v1/profile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/profile.py b/synapse/rest/client/v1/profile.py
index f294f3d7ee..3c5a212920 100644
--- a/synapse/rest/client/v1/profile.py
+++ b/synapse/rest/client/v1/profile.py
@@ -37,7 +37,7 @@ class ProfileDisplaynameRestServlet(ClientV1RestServlet):
         if displayname is not None:
             ret["displayname"] = displayname
 
-        defer.returnValue((200, {ret}))
+        defer.returnValue((200, ret))
 
     @defer.inlineCallbacks
     def on_PUT(self, request, user_id):