mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 13:03:08 +00:00
Fix @ts-expect-error comment after Prettier
This commit is contained in:
1 parent
e90f8e88c0
commit
93bb891d79
1 file changed
+1
-1
@@ -148,9 +148,9 @@ export async function ImageProxy(req: Request, res: Response) {
|
||||
} else if (Jimp && jimpSupported.has(contentType)) {
|
||||
resultBuffer = await Jimp.read(buffer).then((image) => {
|
||||
contentType = image.getMIME();
|
||||
// @ts-expect-error Jimp is defined at this point
|
||||
return image
|
||||
.scaleToFit(width, height)
|
||||
// @ts-expect-error Jimp is defined at this point
|
||||
.getBufferAsync(Jimp.AUTO);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user