mirror of https://github.com/zulip/zulip.git
eslint: Fix @typescript-eslint/no-redundant-type-constituents.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
b9cd8de822
commit
1a13ede0d7
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue