Prettier stuff -.-

This commit is contained in:
TomatoCake 2024-06-22 21:06:08 +02:00
parent 93bb891d79
commit af6e15b9e5

View File

@ -148,10 +148,12 @@ 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();
return image return (
.scaleToFit(width, height) image
// @ts-expect-error Jimp is defined at this point .scaleToFit(width, height)
.getBufferAsync(Jimp.AUTO); // @ts-expect-error Jimp is defined at this point
.getBufferAsync(Jimp.AUTO)
);
}); });
} }
} }