From 7754483c3f2b2b9f0b019fe5f43945f811356a0b Mon Sep 17 00:00:00 2001 From: Prakhar Pratyush Date: Mon, 17 Jun 2024 09:43:46 +0530 Subject: [PATCH] user_topics: Clean up the 'duplicate_request' variable. In the 'bulk_set_user_topic_visibility_policy_in_database' function, the 'duplicate_request' variable wasn't improving any readability. This commit cleans up that variable. --- zerver/lib/user_topics.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zerver/lib/user_topics.py b/zerver/lib/user_topics.py index 68a940acb4..3898b4b1c5 100644 --- a/zerver/lib/user_topics.py +++ b/zerver/lib/user_topics.py @@ -164,8 +164,7 @@ def bulk_set_user_topic_visibility_policy_in_database( user_profiles_seeking_visibility_policy_update: List[UserProfile] = [] for row in rows: - duplicate_request: bool = row.visibility_policy == visibility_policy - if duplicate_request: + if row.visibility_policy == visibility_policy: logging.info( "User %s tried to set visibility_policy to its current value of %s", row.user_profile_id,