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.
This commit is contained in:
Prakhar Pratyush 2024-06-17 09:43:46 +05:30 committed by Tim Abbott
parent 55a8bdfbd9
commit 7754483c3f
1 changed files with 1 additions and 2 deletions

View File

@ -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,