summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-10-20 16:33:15 +0100
committerRichard van der Hoff <richard@matrix.org>2017-10-20 22:14:55 +0100
commit631d7b87b50b7263a2f9a3f89fc196272011bf37 (patch)
treed0b93dc743a38764ea5d240889fbc72804786486 /synapse/rest/client/v2_alpha
parentMerge pull request #2559 from matrix-org/erikj/group_id_validation (diff)
downloadsynapse-631d7b87b50b7263a2f9a3f89fc196272011bf37.tar.xz
Remove pointless create() method
It just calls the constructor, so we may as well kill it rather than having
random codepaths.
Diffstat (limited to 'synapse/rest/client/v2_alpha')
-rw-r--r--synapse/rest/client/v2_alpha/groups.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/groups.py b/synapse/rest/client/v2_alpha/groups.py
index d11bccc1da..100f47ca9e 100644
--- a/synapse/rest/client/v2_alpha/groups.py
+++ b/synapse/rest/client/v2_alpha/groups.py
@@ -412,7 +412,7 @@ class GroupCreateServlet(RestServlet):
         # TODO: Create group on remote server
         content = parse_json_object_from_request(request)
         localpart = content.pop("localpart")
-        group_id = GroupID.create(localpart, self.server_name).to_string()
+        group_id = GroupID(localpart, self.server_name).to_string()
 
         result = yield self.groups_handler.create_group(group_id, user_id, content)