Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
eslint: Fix @typescript-eslint/no-empty-function.
Anders Kaseorgb33988a553fb
diff --git a/web/src/billing/helpers.ts b/web/src/billing/helpers.tsindex 1cae36a345b..7717e493d3d 100644--- a/web/src/billing/helpers.ts+++ b/web/src/billing/helpers.ts@@ -50,7 +50,9 @@ export function create_ajax_request(ignored_inputs: string[] = [],type = "POST",success_callback: (response: unknown) => void,- error_callback: (xhr: JQuery.jqXHR) => void = () => {},+ error_callback: (xhr: JQuery.jqXHR) => void = () => {+ // Ignore errors by default+ },): void {const $form = $(`#${CSS.escape(form_name)}-form`);const form_loading_indicator = `#${CSS.escape(form_name)}_loading_indicator`;diff --git a/web/src/channel.ts b/web/src/channel.tsindex 99ed65bdaa4..b961bce4906 100644--- a/web/src/channel.ts+++ b/web/src/channel.ts@@ -75,7 +75,11 @@ function call(args: AjaxRequestHandlerOptions): JQuery.jqXHR<unknown> | undefine// Wrap the error handlers to reload the page if we get a CSRF error// (What probably happened is that the user logged out in another tab).- const orig_error = args.error ?? (() => {});+ const orig_error =+ args.error ??+ (() => {+ // Ignore errors by default+ });args.error = function wrapped_error(xhr, error_type, xhn) {if (span !== undefined) {span.setHttpStatus(xhr.status);@@ -136,7 +140,11 @@ function call(args: AjaxRequestHandlerOptions): JQuery.jqXHR<unknown> | undefineorig_error(xhr, error_type, xhn);};- const orig_success = args.success ?? (() => {});+ const orig_success =+ args.success ??+ (() => {+ // Do nothing by default+ });args.success = function wrapped_success(data, textStatus, jqXHR) {if (span !== undefined) {span.setHttpStatus(jqXHR.status);diff --git a/web/src/invite.ts b/web/src/invite.tsindex de533ef7909..7d37200630f 100644--- a/web/src/invite.ts+++ b/web/src/invite.ts@@ -200,7 +200,9 @@ function generate_multiuse_invite(): void {const tippy_timeout_in_ms = 800;show_copied_confirmation($("#copy_generated_invite_link")[0],- () => {},+ () => {+ // Do nothing on hide+ },tippy_timeout_in_ms,);});