Skip to content

Commit ca3284c

Browse files
committed
Fix compiler error
1 parent 870890e commit ca3284c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service/bahncard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export async function drawBahncardImage(
3131
): Promise<Buffer> {
3232
// biome-ignore lint/style/noNonNullAssertion: We check for assetPath below
3333
const assetPath = template.asset!;
34-
console.assert(assetPath, "Bahncard template must have an asset");
34+
console.assert(!!assetPath, "Bahncard template must have an asset");
3535

3636
const backgroundImage = await loadImage(await fs.readFile(assetPath));
3737
const canvas = createCanvas(backgroundImage.width, backgroundImage.height);

0 commit comments

Comments
 (0)