chore: clear low-risk lint warnings

This commit is contained in:
ejclaw
2026-04-29 13:31:11 +09:00
parent 7ffd4c65e1
commit 4dcd4037f1
40 changed files with 36 additions and 161 deletions

View File

@@ -68,7 +68,7 @@ async function readJsonObject(
request: Request,
jsonResponse: JsonResponse,
): Promise<Record<string, unknown> | Response> {
let body: unknown = null;
let body: unknown;
try {
body = await request.json();
} catch {
@@ -141,7 +141,7 @@ async function handleClaudeAccountAddRoute(
): Promise<Response | null> {
if (request.method !== 'POST') return null;
let body: { token?: unknown } | null = null;
let body: { token?: unknown };
try {
body = (await request.json()) as { token?: unknown };
} catch {
@@ -213,7 +213,7 @@ async function handleCodexCurrentRoute(
): Promise<Response | null> {
if (request.method !== 'PUT') return null;
let body: { index?: unknown } | null = null;
let body: { index?: unknown };
try {
body = (await request.json()) as { index?: unknown };
} catch {