fix(inventory): biome lint — a bare template literal and a string concat

CI caught what my local gate did not: `npm run check 2>&1 | tail -1 && commit`
takes the exit status of `tail`, not of biome, so the `&&` gated nothing. The
check had been failing locally too; the pipe was swallowing it.

- noUnusedTemplateLiteral: a backtick string with no interpolation
- useTemplate: string concatenation where a template literal belongs

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
claude-hdb 2026-07-13 19:22:07 +00:00
parent 10a161ee07
commit 619b94b7df

View file

@ -182,7 +182,7 @@ export function renderInventory(
`inventory — ${ctx.orgRepo} ${ctx.env}`,
"",
` looked in: project "${ctx.project}", environment "${ctx.environment}"`,
` found: NOTHING. Not one resource.`,
" found: NOTHING. Not one resource.",
"",
"This environment is EMPTY — so there is nothing here to reconcile, and the",
"manifest's list below would just be the manifest talking to itself.",
@ -196,9 +196,7 @@ export function renderInventory(
"",
` cast inventory --env ${ctx.env} --instance ${ctx.instance}`,
"",
"(The manifest declares: " +
rec.manifestOnly.map((m) => m.name).join(", ") +
".)",
`(The manifest declares: ${rec.manifestOnly.map((m) => m.name).join(", ")}.)`,
].join("\n");
}
const lines = [