We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d29159 commit 4539b48Copy full SHA for 4539b48
build/check-ts-suppressions.ts
@@ -63,7 +63,11 @@ if (priorCommit) {
63
if (!priorSummary) {
64
console.warn(`No prior suppressions data found for check "${CHECK_NAME}" at ${priorCommit}, proceeding without comparison`);
65
} else {
66
- priorSuppressions = JSON.parse(priorSummary) as number;
+ try {
67
+ priorSuppressions = JSON.parse(priorSummary) as number;
68
+ } catch (_) {
69
+ console.warn(`Prior suppressions summary at ${priorCommit} is not JSON, proceeding without comparison`);
70
+ }
71
}
72
73
0 commit comments