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.

eslint: Fix @typescript-eslint/no-redundant-type-constituents.

Anders Kaseorg1a13ede0d76a
diff --git a/web/src/blueslip.ts b/web/src/blueslip.ts
index c1cf3988896..899ff1489e7 100644
--- a/web/src/blueslip.ts
+++ b/web/src/blueslip.ts
@@ -86,11 +86,7 @@ export function warn(msg: string, more_info?: unknown): void {
}
}
-export function error(
- msg: string,
- more_info?: object | undefined,
- original_error?: unknown | undefined,
-): void {
+export function error(msg: string, more_info?: object | undefined, original_error?: unknown): void {
// Log the Sentry error before the console warning, so we don't
// end up with a doubled message in the Sentry logs.
Sentry.setContext("more_info", more_info === undefined ? null : more_info);
diff --git a/web/src/blueslip_stacktrace.ts b/web/src/blueslip_stacktrace.ts
index 1767ea63469..38bdea376f6 100644
--- a/web/src/blueslip_stacktrace.ts
+++ b/web/src/blueslip_stacktrace.ts
@@ -8,7 +8,7 @@ import render_blueslip_stacktrace from "../templates/blueslip_stacktrace.hbs";
export class BlueslipError extends Error {
override name = "BlueslipError";
more_info?: object;
- constructor(msg: string, more_info?: object | undefined, cause?: unknown | undefined) {
+ constructor(msg: string, more_info?: object | undefined, cause?: unknown) {
super(msg, {cause});
if (more_info !== undefined) {
this.more_info = more_info;