ruff: Fix RUF059 Unpacked variable is never used.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2025-09-19 16:54:59 -07:00
committed by Tim Abbott
parent fa4d680851
commit f24a0a6b81
53 changed files with 168 additions and 155 deletions

View File

@@ -128,7 +128,7 @@ def detect_narrowed_window(
# TODO: We should support stream IDs and direct messages here as well.
narrow_stream_name = request.GET.get("stream")
assert narrow_stream_name is not None
(narrow_stream, ignored_sub) = access_stream_by_name(user_profile, narrow_stream_name)
(narrow_stream, _sub) = access_stream_by_name(user_profile, narrow_stream_name)
narrow = [NeverNegatedNarrowTerm(operator="stream", operand=narrow_stream.name)]
except Exception:
logging.warning("Invalid narrow requested, ignoring", extra=dict(request=request))