Skip to content

Commit

Permalink
Testing JSON parse
Browse files Browse the repository at this point in the history
nbhoski committed May 21, 2024
1 parent 2065501 commit f1ddeb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buildSummary.ts
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ export async function readJsonFile(filePath: string): Promise<TaskList> {
return JSON.parse(data);
} catch (error) {
console.error('Error reading the JSON file:', error);
return [];
return null;

Check failure on line 27 in src/buildSummary.ts

GitHub Actions / Build and Test

Type 'null' is not assignable to type 'TaskList'.
}
}

0 comments on commit f1ddeb3

Please sign in to comment.