Apply suggestions from code review

Co-Authored-By: anoadragon453 <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
Richard van der Hoff 2019-01-24 17:22:09 +00:00 committed by GitHub
parent 8ea509a935
commit 03c85335d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class SearchHandler(BaseHandler):
room_id (str): id of the room to search through. room_id (str): id of the room to search through.
Returns: Returns:
Deferred[iterable[str]]: predecessor room ids Deferred[iterable[unicode]]: predecessor room ids
""" """
historical_room_ids = [] historical_room_ids = []

View File

@ -446,7 +446,7 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore):
room_id (str) room_id (str)
Returns: Returns:
Deferred[str]: predecessor room id Deferred[unicode|None]: predecessor room id
""" """
state_ids = yield self.get_current_state_ids(room_id) state_ids = yield self.get_current_state_ids(room_id)
create_id = state_ids.get((EventTypes.Create, "")) create_id = state_ids.get((EventTypes.Create, ""))