removed one redundant check for height and width beeing set

This commit is contained in:
Marek Bachmann 2022-12-28 16:42:38 +01:00
parent 88a7dd1afb
commit 7b34fdc715

View File

@ -285,12 +285,13 @@ class Image
$width = $this->getWidth();
$height = $this->getHeight();
if ((! $width)|| (! $height)) {
$scale = Images::getScalingDimensions($width, $height,$max);
if ($scale) {
return $this->scale($scale['width'], $scale['height']);
} else {
return false;
}
$scale = Images::getScalingDimensions($width, $height,$max);
return $this->scale($scale['width'], $scale['height']);
}
/**