From d2ad15251e63cd85776ffd0e2154f666fd02c529 Mon Sep 17 00:00:00 2001 From: Hans Kristian Flaatten Date: Fri, 19 Aug 2016 23:27:09 +0200 Subject: [PATCH] fix(eslint): resolve no-mixed-operators errors --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index df21b77..673d3c4 100644 --- a/index.js +++ b/index.js @@ -72,8 +72,8 @@ Image.prototype.uploadVersions = function uploadVersions(results, cb) { Image.prototype.removeVersions = function removeVersions(results, cb) { each(results.uploads, (image, callback) => { - if (!this.upload.opts.cleanup.original && image.original || - !this.upload.opts.cleanup.versions && !image.original + if ((!this.upload.opts.cleanup.original && image.original) || + (!this.upload.opts.cleanup.versions && !image.original) ) { return setTimeout(callback, 0); }