mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
ESlint one-var, fix comma-dangle
This commit is contained in:
14
src/image.js
14
src/image.js
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user