ESlint no-mixed-operators

This commit is contained in:
Peter Jaszkowiak
2017-02-18 01:51:11 -07:00
parent 2e031f3759
commit a5a3f3089a
22 changed files with 25 additions and 23 deletions

View File

@@ -42,7 +42,7 @@ image.resizeImage = function (data, callback) {
crop = async.apply(image.crop.bind(image), x, y, h * desiredRatio, h);
} else {
x = 0; // width is the smaller dimension here
y = Math.floor(h / 2 - (w * desiredRatio / 2));
y = Math.floor((h / 2) - (w * desiredRatio / 2));
crop = async.apply(image.crop.bind(image), x, y, w, w * desiredRatio);
}
} else {