Skip to content

Commit 566d3ce

Browse files
committed
fix: address eslint violations (interface over type, nullish coalescing)
1 parent f89f96e commit 566d3ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/services/systemMessage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ export async function buildSystemMessage(
9595
let modeContent: string | null = null;
9696
if (mode) {
9797
modeContent =
98-
(contextInstructions && extractModeSection(contextInstructions, mode)) ||
99-
(globalInstructions && extractModeSection(globalInstructions, mode)) ||
98+
(contextInstructions && extractModeSection(contextInstructions, mode)) ??
99+
(globalInstructions && extractModeSection(globalInstructions, mode)) ??
100100
null;
101101
}
102102

src/utils/main/instructionFiles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export const LOCAL_INSTRUCTION_FILENAME = "AGENTS.local.md";
2121
/**
2222
* File reader abstraction for reading files from either local fs or Runtime.
2323
*/
24-
type FileReader = {
24+
interface FileReader {
2525
readFile(filePath: string): Promise<string>;
26-
};
26+
}
2727

2828
/**
2929
* Create a FileReader for local filesystem access.

0 commit comments

Comments
 (0)