ESlint one-var, fix comma-dangle

This commit is contained in:
Peter Jaszkowiak
2017-02-17 20:20:42 -07:00
parent bc1d70c126
commit 2ba46808a1
109 changed files with 774 additions and 709 deletions

View File

@@ -24,13 +24,13 @@ image.resizeImage = function (data, callback) {
return callback(err);
}
var w = image.bitmap.width,
h = image.bitmap.height,
origRatio = w / h,
desiredRatio = data.width && data.height ? data.width / data.height : origRatio,
x = 0,
y = 0,
crop;
var w = image.bitmap.width;
var h = image.bitmap.height;
var origRatio = w / h;
var desiredRatio = data.width && data.height ? data.width / data.height : origRatio;
var x = 0;
var y = 0;
var crop;
if (origRatio !== desiredRatio) {
if (desiredRatio > origRatio) {