Browse Source

compareImages doesn't need to be an async function

pull/116/head
Thomas Grainger 7 years ago committed by GitHub
parent
commit
5fb910671c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      compareImages.js

2
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) {

Loading…
Cancel
Save