Skip to content

Commit

Permalink
lint: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyAsh5114 committed Oct 14, 2024
1 parent 596a694 commit 4e8d2b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/lib/mongo/mongodb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ if (process.env.NODE_ENV === 'development') {
* In development mode, use a global variable so that the value
* Is preserved across module reloads caused by HMR (Hot Module Replacement).
*/
// eslint-disable-next-line svelte/@typescript-eslint/no-unnecessary-condition
if (!global._mongoClientPromise) {
client = new MongoClient(uri, options);
global._mongoClientPromise = client.connect();
Expand Down
2 changes: 1 addition & 1 deletion src/routes/profile/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
try {
migratingToV2 = true;
toast.warning("Don't close this window or reload the page");
const response = await trpc().users.checkV2MigrationAvailability.query();
await trpc().users.checkV2MigrationAvailability.query();
migratingToV2 = false;
} catch (error) {
if (error instanceof TRPCClientError) {
Expand Down

0 comments on commit 4e8d2b3

Please sign in to comment.