user_group_edit_members: Remove redundant conditionals.

This commit is contained in:
Varun Singh 2024-06-21 22:12:48 +05:30 committed by Tim Abbott
parent 8409a04c03
commit 2823e732de
1 changed files with 2 additions and 6 deletions

View File

@ -159,13 +159,9 @@ function show_user_group_membership_request_result({
ignored_deactivated_users, ignored_deactivated_users,
}); });
scroll_util.get_content_element($user_group_subscription_req_result_elem).html(html); 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); $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.removeClass(remove_class);
} }
}
export function edit_user_group_membership({ export function edit_user_group_membership({
group, group,