From cf2f14f04c398d714efd39d6c83fcf93967d2584 Mon Sep 17 00:00:00 2001 From: Mateusz Mandera Date: Sat, 17 Sep 2022 23:01:55 +0200 Subject: [PATCH] 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. --- zerver/views/streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/views/streams.py b/zerver/views/streams.py index cb928e3343..8982f3d6de 100644 --- a/zerver/views/streams.py +++ b/zerver/views/streams.py @@ -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():