From 1a13ede0d76a809ee66ef6ee883e788e432844c2 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 21 Jul 2023 14:26:36 -0700 Subject: [PATCH] eslint: Fix @typescript-eslint/no-redundant-type-constituents. Signed-off-by: Anders Kaseorg --- web/src/blueslip.ts | 6 +----- web/src/blueslip_stacktrace.ts | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/web/src/blueslip.ts b/web/src/blueslip.ts index c1cf398889..899ff1489e 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 1767ea6346..38bdea376f 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;