Fix brackets
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
6860089d66
commit
49c272efa3
|
@ -70,10 +70,10 @@ export async function optimizeImages() {
|
|||
await ingestedImage.decoded;
|
||||
|
||||
const shouldResize =
|
||||
imagePath.startsWith(TEAM_IMAGES_DIRECTORY) ||
|
||||
(imagePath.startsWith(EVENTS_IMAGES_DIRECTORY) &&
|
||||
(width ?? 0) > IMAGE_MINIMUM_SIZE &&
|
||||
(height ?? 0) > IMAGE_MINIMUM_SIZE);
|
||||
(imagePath.startsWith(TEAM_IMAGES_DIRECTORY) ||
|
||||
imagePath.startsWith(EVENTS_IMAGES_DIRECTORY)) &&
|
||||
(width ?? 0) > IMAGE_MINIMUM_SIZE &&
|
||||
(height ?? 0) > IMAGE_MINIMUM_SIZE;
|
||||
|
||||
if (width && height && shouldResize) {
|
||||
const smallerDimension = width < height ? "width" : "height";
|
||||
|
|
Loading…
Reference in New Issue