Skip to content

Commit 2d4b4b5

Browse files
committed
TrustAuditFinding should handle all findings, so if we find something else, throw
1 parent 2995cb7 commit 2d4b4b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/[...parts]/_page/Sources/TrustAuditFindings.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ export function TrustAuditFindings({
4747
subtitle = `The publish was triggered via ${sourceB.buildFileName}, changing from ${sourceA.buildFileName}. While potentially a refactor, an unexpected change in the build "recipe" warrants an audit.`;
4848
break;
4949
default:
50-
return null;
50+
throw new Error(
51+
`Unknown finding type: ${(finding as { type: string }).type}`,
52+
);
5153
}
5254

5355
return (

0 commit comments

Comments
 (0)