浏览代码

Fix linting

j433866 6 年之前
父节点
当前提交
370ae323f6
共有 1 个文件被更改,包括 2 次插入1 次删除
  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") {