Skip to content

Commit

Permalink
Fix condition values in logo check
Browse files Browse the repository at this point in the history
  • Loading branch information
unanoc committed Dec 7, 2021
1 parent 1c2ffc6 commit a18d96f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/validation/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit a18d96f

Please sign in to comment.