We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 870890e commit ca3284cCopy full SHA for ca3284c
src/service/bahncard.ts
@@ -31,7 +31,7 @@ export async function drawBahncardImage(
31
): Promise<Buffer> {
32
// biome-ignore lint/style/noNonNullAssertion: We check for assetPath below
33
const assetPath = template.asset!;
34
- console.assert(assetPath, "Bahncard template must have an asset");
+ console.assert(!!assetPath, "Bahncard template must have an asset");
35
36
const backgroundImage = await loadImage(await fs.readFile(assetPath));
37
const canvas = createCanvas(backgroundImage.width, backgroundImage.height);
0 commit comments