Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

user_group_create_members: Avoid needless unchecked type assertion.

Anders Kaseorgf7cf31aa1697
diff --git a/web/src/user_group_create_members.ts b/web/src/user_group_create_members.ts
index a3296809490..5d61def3770 100644
--- a/web/src/user_group_create_members.ts
+++ b/web/src/user_group_create_members.ts
@@ -139,8 +139,7 @@ export function build_widgets(): void {
user_group_create_members_data.initialize_with_current_user();
const current_user_id = current_user.user_id;
- // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
- const initial_members = [people.get_by_user_id(current_user_id)] as (User | UserGroup)[];
+ const initial_members: (User | UserGroup)[] = [people.get_by_user_id(current_user_id)];
all_users_list_widget = ListWidget.create($("#create_user_group_members"), initial_members, {
name: "new_user_group_add_users",