mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
ESlint no-mixed-operators
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user