Fix brackets
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Amy 2022-06-04 16:21:33 -04:00
parent 6860089d66
commit 49c272efa3
1 changed files with 4 additions and 4 deletions

View File

@ -70,10 +70,10 @@ export async function optimizeImages() {
await ingestedImage.decoded; await ingestedImage.decoded;
const shouldResize = const shouldResize =
imagePath.startsWith(TEAM_IMAGES_DIRECTORY) || (imagePath.startsWith(TEAM_IMAGES_DIRECTORY) ||
(imagePath.startsWith(EVENTS_IMAGES_DIRECTORY) && imagePath.startsWith(EVENTS_IMAGES_DIRECTORY)) &&
(width ?? 0) > IMAGE_MINIMUM_SIZE && (width ?? 0) > IMAGE_MINIMUM_SIZE &&
(height ?? 0) > IMAGE_MINIMUM_SIZE); (height ?? 0) > IMAGE_MINIMUM_SIZE;
if (width && height && shouldResize) { if (width && height && shouldResize) {
const smallerDimension = width < height ? "width" : "height"; const smallerDimension = width < height ? "width" : "height";