fix(lint): resolve ESLint errors for unused variables

- Change unused catch parameter to _error in codex-reviewer.ts
- Remove unused ArtifactFilter import in artifacts/manager.ts
- Change unused error parameter to _error in session/recovery.ts
- Remove unused saveState import in session/manager.test.ts
- Convert unknown error to string in githubops.test.ts template literal

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Shunsuke Hayashi 2026-01-26 12:43:15 +09:00
parent f56c9d712a
commit 4ec77dc3f4
5 changed files with 3 additions and 5 deletions

View File

@ -25,7 +25,6 @@ import type {
ArtifactType,
SaveArtifactOptions,
DownloadUrlOptions,
ArtifactFilter,
} from "./types.js";
/** デフォルトTTL (24時間) */

View File

@ -323,7 +323,7 @@ function buildCodexCommand(
}
},
};
} catch (error) {
} catch (_error) {
// ファイル書き込みエラー時はフォールバック
console.warn("[CodexReviewer] Failed to write temp file, using inline content");
}

View File

@ -4,7 +4,6 @@
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import {
saveState,
restoreState,
getPendingSessions,
deleteSession,

View File

@ -169,7 +169,7 @@ export async function completeSession(
* @param sessionId - ID
* @param error -
*/
export async function failSession(sessionId: string, error: Error): Promise<void> {
export async function failSession(sessionId: string, _error: Error): Promise<void> {
await updateStatus(sessionId, SessionStatus.ERROR);
// エラー情報を記録

View File

@ -35,7 +35,7 @@ function createTestBranch(branchName: string): void {
try {
execSync(`git checkout -b ${branchName}`, { encoding: "utf-8" });
} catch (error: unknown) {
throw new Error(`Failed to create branch: ${error}`);
throw new Error(`Failed to create branch: ${String(error)}`);
}
}