mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
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:
committed by
Tim Abbott
parent
09c6ee6468
commit
cf2f14f04c
@@ -857,7 +857,7 @@ def delete_in_topic(
|
|||||||
stream_id: int = REQ(converter=to_non_negative_int, path_only=True),
|
stream_id: int = REQ(converter=to_non_negative_int, path_only=True),
|
||||||
topic_name: str = REQ("topic_name"),
|
topic_name: str = REQ("topic_name"),
|
||||||
) -> HttpResponse:
|
) -> 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)
|
messages = messages_for_topic(assert_is_not_none(stream.recipient_id), topic_name)
|
||||||
if not stream.is_history_public_to_subscribers():
|
if not stream.is_history_public_to_subscribers():
|
||||||
|
|||||||
Reference in New Issue
Block a user