web: Condense unnecessarily verbose function signatures.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-07-31 12:43:41 -07:00
committed by Tim Abbott
parent 6b8fc6de36
commit d074848673
6 changed files with 8 additions and 13 deletions

View File

@@ -556,7 +556,7 @@ function open_edit_form_modal(this: HTMLElement): void {
}
if (Object.keys(deleted_values).length !== 0) {
const edit_select_field_modal_callback: () => void = () => {
const edit_select_field_modal_callback = (): void => {
show_modal_for_deleting_options(field, deleted_values, update_profile_field);
};
dialog_widget.close(edit_select_field_modal_callback);