Skip to content

Commit ba92e17

Browse files
yifancongCopilot
andauthored
Update src/ai-analysis.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 042a0f9 commit ba92e17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ai-analysis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export async function analyzeWithAI(
7474
}
7575

7676
try {
77-
const diffData: unknown = JSON.parse(fs.readFileSync(diffJsonPath, 'utf8'));
77+
const diffData: unknown = JSON.parse(await fs.promises.readFile(diffJsonPath, 'utf8'));
7878
const prompt = buildPrompt(diffData);
7979
const provider = detectProvider(model);
8080

0 commit comments

Comments
 (0)