Remove pointless create() method

It just calls the constructor, so we may as well kill it rather than having
random codepaths.
This commit is contained in:
Richard van der Hoff 2017-10-20 16:33:15 +01:00
parent b4a6b7f720
commit 631d7b87b5
6 changed files with 8 additions and 12 deletions

View file

@ -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)