delete_in_topic: Name unused variable as ignored.

sub isn't used, so let's just call it ignored_sub to be explicit about
that intent.
This commit is contained in:
Mateusz Mandera 2022-09-17 23:01:55 +02:00 committed by Tim Abbott
parent 09c6ee6468
commit cf2f14f04c
1 changed files with 1 additions and 1 deletions

View File

@ -857,7 +857,7 @@ def delete_in_topic(
stream_id: int = REQ(converter=to_non_negative_int, path_only=True),
topic_name: str = REQ("topic_name"),
) -> HttpResponse:
(stream, sub) = access_stream_by_id(user_profile, stream_id)
stream, ignored_sub = access_stream_by_id(user_profile, stream_id)
messages = messages_for_topic(assert_is_not_none(stream.recipient_id), topic_name)
if not stream.is_history_public_to_subscribers():