From 2823e732de17f447113ce2eb4f76fd734abac979 Mon Sep 17 00:00:00 2001 From: Varun Singh Date: Fri, 21 Jun 2024 22:12:48 +0530 Subject: [PATCH] user_group_edit_members: Remove redundant conditionals. --- web/src/user_group_edit_members.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/web/src/user_group_edit_members.ts b/web/src/user_group_edit_members.ts index 8e33d7145e..1dc90bcbb5 100644 --- a/web/src/user_group_edit_members.ts +++ b/web/src/user_group_edit_members.ts @@ -159,12 +159,8 @@ function show_user_group_membership_request_result({ ignored_deactivated_users, }); scroll_util.get_content_element($user_group_subscription_req_result_elem).html(html); - if (add_class) { - $user_group_subscription_req_result_elem.addClass(add_class); - } - if (remove_class) { - $user_group_subscription_req_result_elem.removeClass(remove_class); - } + $user_group_subscription_req_result_elem.addClass(add_class); + $user_group_subscription_req_result_elem.removeClass(remove_class); } export function edit_user_group_membership({