From 75e2ab8957962e95f8d6ef339425105b2285afd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 21 Mar 2018 10:09:09 -0400 Subject: [PATCH] remove unnecessary code --- src/image.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/image.js b/src/image.js index 0269a4c226..f99a73e3bc 100644 --- a/src/image.js +++ b/src/image.js @@ -78,9 +78,6 @@ image.resizeImage = function (data, callback) { if (data.quality) { image.quality(data.quality); } - next(null, image); - }, - function (image, next) { image.write(data.target || data.path, next); }, ], function (err) {