chore: pass PR1 verification gate (format, lint, coverage)
This commit is contained in:
@@ -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}"`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user