Skip to content

Commit 31ce095

Browse files
committed
Update generate-summaries.ts
1 parent 20bfbe0 commit 31ce095

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

packages/mcp-server/scripts/generate-summaries.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,10 @@ async function fetch_section_content(url: string) {
8787
return await response.text();
8888
}
8989

90-
async function file_exists(filepath: string): Promise<boolean> {
90+
async function load_existing_summaries(output_path: string): Promise<SummaryData | null> {
9191
try {
92-
await access(filepath);
93-
return true;
92+
await access(output_path);
9493
} catch {
95-
return false;
96-
}
97-
}
98-
99-
async function load_existing_summaries(output_path: string): Promise<SummaryData | null> {
100-
if (!(await file_exists(output_path))) {
10194
return null;
10295
}
10396

0 commit comments

Comments
 (0)