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

Commit

Permalink
Skip conversion to list
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Feb 28, 2022
1 parent f005eb2 commit ac12b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/handlers/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ async def get_state_ids_for_pdu(self, room_id: str, event_id: str) -> List[str]:
# get_state_groups_ids should return exactly one result
assert len(state_groups) == 1

_, state_map = list(state_groups.items()).pop()
state_map = next(iter(state_groups.values()))

if event.is_state():
# Get previous state
Expand Down

0 comments on commit ac12b5f

Please sign in to comment.