mirror of https://github.com/zulip/zulip.git
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:
parent
09c6ee6468
commit
cf2f14f04c
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue