From a18d96f83e60898b818ec548a24a029069cbe226 Mon Sep 17 00:00:00 2001 From: Daniil Lee <24758309+leedaniil@users.noreply.github.com> Date: Tue, 7 Dec 2021 17:34:44 +0300 Subject: [PATCH] Fix condition values in logo check --- pkg/validation/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/validation/image.go b/pkg/validation/image.go index d7679e3..7fa4d82 100644 --- a/pkg/validation/image.go +++ b/pkg/validation/image.go @@ -27,7 +27,7 @@ func ValidatePngImageDimensionForCI(file io.Reader) error { } // TODO: If we fix all incorrect logos in assets repo, we could use "|| img.Width != img.Height" in addition. - if img.Width > maxW || img.Height > maxH || img.Height < minH { + if img.Width > maxW || img.Height > maxH || img.Width < 60 || img.Height < 60 { return fmt.Errorf("%w: max - %dx%d, min - %dx%d; given %dx%d", ErrInvalidImgDimension, maxW, maxH, minW, minH, img.Width, img.Height) }