Browse Source

Fix linting

j433866 6 years ago
parent
commit
370ae323f6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/core/operations/ResizeImage.mjs

+ 2 - 1
src/core/operations/ResizeImage.mjs

@@ -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") {