chore: pass PR1 verification gate (format, lint, coverage)
CI / verify (push) Successful in 48s
CI / verify (pull_request) Successful in 50s

This commit is contained in:
ginnoir
2026-06-11 18:23:43 -05:00
parent cc4955abab
commit 1c5fcc80ad
8 changed files with 127 additions and 19 deletions
+2 -6
View File
@@ -68,16 +68,12 @@ export function buildContent(input: { resources: unknown[]; actions: unknown[] }
for (const action of actions) {
for (const y of action.yields) {
if (!resourcesById[y.resourceId]) {
throw new Error(
`Action "${action.id}" yields unknown resource "${y.resourceId}"`,
);
throw new Error(`Action "${action.id}" yields unknown resource "${y.resourceId}"`);
}
}
for (const c of action.costs) {
if (!resourcesById[c.resourceId]) {
throw new Error(
`Action "${action.id}" cost references unknown resource "${c.resourceId}"`,
);
throw new Error(`Action "${action.id}" cost references unknown resource "${c.resourceId}"`);
}
}
}