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

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-07-21 14:26:36 -07:00 committed by Anders Kaseorg
parent b9cd8de822
commit 1a13ede0d7
2 changed files with 2 additions and 6 deletions

View File

@ -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);

View File

@ -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;