Skip to content

Commit cc08930

Browse files
committed
fix: sentry lint issues
!nuf
1 parent 263984f commit cc08930

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

frontend/src/ts/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async function getDataAndInit(): Promise<boolean> {
6969
);
7070
}
7171

72-
Sentry.setUser(snapshot.uid, snapshot.name);
72+
void Sentry.setUser(snapshot.uid, snapshot.name);
7373
if (snapshot.needsToChangeName) {
7474
Notifications.addPSA(
7575
"You need to update your account name. <a class='openNameChange'>Click here</a> to change it and learn more about why.",
@@ -155,7 +155,7 @@ export async function onAuthStateChanged(
155155
}
156156

157157
if (!authInitialisedAndConnected || !user) {
158-
Sentry.clearUser();
158+
void Sentry.clearUser();
159159
}
160160

161161
let keyframes = [

frontend/src/ts/config-validation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as Notifications from "./elements/notifications";
22
import { ZodSchema, z } from "zod";
3-
import { captureException } from "./sentry";
3+
import * as Sentry from "./sentry";
44

55
// function isConfigKeyValid(name: string): boolean {
66
// if (name === null || name === undefined || name === "") return false;
@@ -21,7 +21,7 @@ export function invalid(
2121

2222
Notifications.add(message, -1);
2323
console.error(message);
24-
captureException(new Error(message));
24+
void Sentry.captureException(new Error(message));
2525
}
2626

2727
export function isConfigValueValid<T>(

frontend/src/ts/cookies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ export function activateWhatsAccepted(): void {
3737
activateAnalytics();
3838
}
3939
if (accepted?.sentry) {
40-
activateSentry();
40+
void activateSentry();
4141
}
4242
}

frontend/src/ts/elements/settings/theme-picker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export async function fillPresetButtons(): Promise<void> {
128128
const msg =
129129
"Failed to fill preset theme buttons: favThemes or allThemes element not found";
130130
Notifications.add(msg, -1);
131-
captureException(new Error(msg));
131+
void captureException(new Error(msg));
132132
console.error(msg, { favThemesEl, themesEl });
133133
return;
134134
}

frontend/src/ts/test/test-logic.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ import * as CompositionState from "../states/composition";
7676
import { SnapshotResult } from "../constants/default-snapshot";
7777
import { WordGenError } from "../utils/word-gen-error";
7878
import { tryCatch } from "@monkeytype/util/trycatch";
79-
import { captureException } from "../sentry";
79+
import * as Sentry from "../sentry";
8080
import * as Loader from "../elements/loader";
8181
import * as TestInitFailed from "../elements/test-init-failed";
8282
import { canQuickRestart } from "../utils/quick-restart";
@@ -410,7 +410,7 @@ export async function init(): Promise<void | null> {
410410
testReinitCount++;
411411
if (testReinitCount > 3) {
412412
if (lastInitError) {
413-
captureException(lastInitError);
413+
void Sentry.captureException(lastInitError);
414414
TestInitFailed.showError(
415415
`${lastInitError.name}: ${lastInitError.message}`
416416
);

0 commit comments

Comments
 (0)