From 5fb910671c8c0d7ea7d8c65c72ed2a5579a7a7d2 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Tue, 28 Nov 2017 15:47:40 +0000 Subject: [PATCH] compareImages doesn't need to be an async function --- compareImages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compareImages.js b/compareImages.js index 42e5772..89d2e98 100644 --- a/compareImages.js +++ b/compareImages.js @@ -1,6 +1,6 @@ const resemble = require('./resemble'); -module.exports = async function(image1, image2) { +module.exports = function(image1, image2) { return new Promise(function(resolve, reject) { resemble(image1).compareTo(image2).onComplete(function(data) { if (data.error) {