Skip to content

Commit 56fc8f2

Browse files
committed
Resolve lint errors
1 parent 0c2f4c0 commit 56fc8f2

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { exec } from "child_process";
22
import { promisify } from "util";
33
import * as fs from "fs";
44
import * as path from "path";
5-
import { Config } from "./config";
5+
import type { Config } from "./config";
66

77
const execAsync = promisify(exec);
88

src/services/historyService.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe("HistoryService", () => {
2525
// Clean up temp directory
2626
try {
2727
await fs.rm(tempDir, { recursive: true, force: true });
28-
} catch (error) {
28+
} catch {
2929
// Ignore cleanup errors
3030
}
3131
});
@@ -228,7 +228,11 @@ describe("HistoryService", () => {
228228
const workspaceDir = config.getSessionDir(workspaceId);
229229
const chatPath = path.join(workspaceDir, "chat.jsonl");
230230
const content = await fs.readFile(chatPath, "utf-8");
231-
const persisted = JSON.parse(content.trim());
231+
const persisted = JSON.parse(content.trim()) as {
232+
workspaceId: string;
233+
id: string;
234+
role: string;
235+
};
232236

233237
expect(persisted.workspaceId).toBe(workspaceId);
234238
});

0 commit comments

Comments
 (0)