Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
users: Remove unused variable in get_user_dicts_in_realm.
Sahil Batra7e7710043374
diff --git a/zerver/lib/users.py b/zerver/lib/users.pyindex 2025b024e0d..368c673c603 100644--- a/zerver/lib/users.py+++ b/zerver/lib/users.py@@ -1044,9 +1044,6 @@ def get_accessible_user_ids(def get_user_dicts_in_realm(realm: Realm, user_profile: UserProfile | None) -> tuple[list[RawUserDict], list[APIUserDict]]:- group_allowed_to_access_all_users = realm.can_access_all_users_group- assert group_allowed_to_access_all_users is not None-all_user_dicts = get_realm_user_dicts(realm.id)if check_user_can_access_all_users(user_profile):return (all_user_dicts, [])diff --git a/zerver/tests/test_event_system.py b/zerver/tests/test_event_system.pyindex 6ca2acec09a..2439163634d 100644--- a/zerver/tests/test_event_system.py+++ b/zerver/tests/test_event_system.py@@ -171,7 +171,7 @@ class EventsEndpointTest(ZulipTestCase):status_code=401,)- with self.assert_database_query_count(15):+ with self.assert_database_query_count(14):result = self.client_post("/json/register")result_dict = self.assert_json_success(result)self.assertEqual(result_dict["queue_id"], None)