fix: remove unused variables (#7968)

This commit is contained in:
Don Isaac
2024-08-26 02:23:56 -04:00
committed by GitHub
parent 14066965fa
commit dbcfd24ed8
18 changed files with 18 additions and 18 deletions

View File

@@ -49,7 +49,7 @@ const generateUrl = ({
url.searchParams.append('xywh', xywh);
}
return url.toString();
} catch (e) {
} catch {
return null;
}
};

View File

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

View File

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

View File

@@ -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 {}
}
}