mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
fix: remove unused variables (#7968)
This commit is contained in:
@@ -49,7 +49,7 @@ const generateUrl = ({
|
||||
url.searchParams.append('xywh', xywh);
|
||||
}
|
||||
return url.toString();
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -72,7 +72,7 @@ export class FetchService extends Service {
|
||||
if (res.headers.get('Content-Type')?.includes('application/json')) {
|
||||
try {
|
||||
reason = await res.json();
|
||||
} catch (err) {
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ export const loader: LoaderFunction = async ({ request }) => {
|
||||
try {
|
||||
const { message } = await res.json();
|
||||
error = message;
|
||||
} catch (e) {
|
||||
} catch {
|
||||
error = 'failed to verify sign-in token';
|
||||
}
|
||||
return redirect(`/signIn?error=${encodeURIComponent(error)}`);
|
||||
|
||||
@@ -187,7 +187,7 @@ function warning(cond: any, message: string) {
|
||||
// enabling "pause on exceptions" in your JavaScript debugger.
|
||||
throw new Error(message);
|
||||
// eslint-disable-next-line no-empty
|
||||
} catch (e) {}
|
||||
} catch {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user