mirror of https://github.com/zulip/zulip.git
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:
parent
55a8bdfbd9
commit
7754483c3f
|
@ -164,8 +164,7 @@ def bulk_set_user_topic_visibility_policy_in_database(
|
||||||
|
|
||||||
user_profiles_seeking_visibility_policy_update: List[UserProfile] = []
|
user_profiles_seeking_visibility_policy_update: List[UserProfile] = []
|
||||||
for row in rows:
|
for row in rows:
|
||||||
duplicate_request: bool = row.visibility_policy == visibility_policy
|
if row.visibility_policy == visibility_policy:
|
||||||
if duplicate_request:
|
|
||||||
logging.info(
|
logging.info(
|
||||||
"User %s tried to set visibility_policy to its current value of %s",
|
"User %s tried to set visibility_policy to its current value of %s",
|
||||||
row.user_profile_id,
|
row.user_profile_id,
|
||||||
|
|
Loading…
Reference in New Issue