Skip to content

Commit

Permalink
Prettier stuff -.-
Browse files Browse the repository at this point in the history
  • Loading branch information
DEVTomatoCake committed Jun 22, 2024
1 parent 93bb891 commit af6e15b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/api/middlewares/ImageProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,12 @@ export async function ImageProxy(req: Request, res: Response) {
} else if (Jimp && jimpSupported.has(contentType)) {
resultBuffer = await Jimp.read(buffer).then((image) => {
contentType = image.getMIME();
return image
.scaleToFit(width, height)
// @ts-expect-error Jimp is defined at this point
.getBufferAsync(Jimp.AUTO);
return (
image
.scaleToFit(width, height)
// @ts-expect-error Jimp is defined at this point
.getBufferAsync(Jimp.AUTO)
);
});
}
}
Expand Down

0 comments on commit af6e15b

Please sign in to comment.