Skip to content

Commit

Permalink
Remove assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jul 8, 2024
1 parent fb2fc47 commit c8f1411
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions synapse/storage/databases/main/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,6 @@ def f(txn: LoggingTransaction) -> List[CurrentStateDeltaMembership]:
prev_sender,
) in txn:
assert room_id is not None
assert instance_name is not None
assert stream_ordering is not None

if _filter_results_by_stream(
Expand Down Expand Up @@ -970,10 +969,7 @@ def f(txn: LoggingTransaction) -> List[CurrentStateDeltaMembership]:
instance_name=prev_instance_name or "master",
stream=prev_stream_ordering,
)
if (
prev_instance_name is not None
and prev_stream_ordering is not None
)
if (prev_stream_ordering is not None)
else None
),
prev_membership=prev_membership,
Expand Down

0 comments on commit c8f1411

Please sign in to comment.