mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 07:46:16 -04:00
Fix linting
This commit is contained in:
parent
514eef50de
commit
370ae323f6
1 changed files with 2 additions and 1 deletions
|
@ -86,10 +86,11 @@ class ResizeImage extends Operation {
|
|||
"Hermite": jimp.RESIZE_HERMITE,
|
||||
"Bezier": jimp.RESIZE_BEZIER
|
||||
};
|
||||
|
||||
|
||||
if (!type || type.mime.indexOf("image") !== 0){
|
||||
throw new OperationError("Invalid file type.");
|
||||
}
|
||||
|
||||
const image = await jimp.read(Buffer.from(input));
|
||||
|
||||
if (unit === "Percent") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue