Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Jul 5, 2020
1 parent f43bf0c commit 9c1e934
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions synapse/rest/client/v2_alpha/shared_rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import logging

from synapse.api.errors import AuthError
from synapse.http.servlet import RestServlet
from ._base import client_patterns

Expand All @@ -28,7 +29,7 @@ class UserSharedRoomsServlet(RestServlet):

PATTERNS = client_patterns(
"/user/(?P<user_id>[^/]*)/shared_rooms/(?P<other_user_id>[^/]*)",
releases=(), # This is an unstable feature
releases=(), # This is an unstable feature
)

def __init__(self, hs):
Expand All @@ -43,9 +44,7 @@ async def on_GET(self, request, user_id, other_user_id):

rooms = await self.store.get_rooms_in_common_for_users(user_id, other_user_id)

return 200, {
"rooms": rooms,
}
return 200, {"rooms": rooms,}


def register_servlets(hs, http_server):
Expand Down

0 comments on commit 9c1e934

Please sign in to comment.