Fix @ts-expect-error comment after Prettier

This commit is contained in:
TomatoCake 2024-06-22 20:50:11 +02:00
parent e90f8e88c0
commit 93bb891d79

View File

@ -148,9 +148,9 @@ export async function ImageProxy(req: Request, res: Response) {
} else if (Jimp && jimpSupported.has(contentType)) { } else if (Jimp && jimpSupported.has(contentType)) {
resultBuffer = await Jimp.read(buffer).then((image) => { resultBuffer = await Jimp.read(buffer).then((image) => {
contentType = image.getMIME(); contentType = image.getMIME();
// @ts-expect-error Jimp is defined at this point
return image return image
.scaleToFit(width, height) .scaleToFit(width, height)
// @ts-expect-error Jimp is defined at this point
.getBufferAsync(Jimp.AUTO); .getBufferAsync(Jimp.AUTO);
}); });
} }