mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
format
This commit is contained in:
parent
42a81537d3
commit
faa9b0784a
1 changed files with 5 additions and 1 deletions
|
@ -182,7 +182,11 @@ defmodule Philomena.Images.Image do
|
|||
|
||||
cond do
|
||||
width <= 0 or height <= 0 ->
|
||||
add_error(changeset, :image, "contents corrupt, not recognized, or dimensions are too large to process")
|
||||
add_error(
|
||||
changeset,
|
||||
:image,
|
||||
"contents corrupt, not recognized, or dimensions are too large to process"
|
||||
)
|
||||
|
||||
width > 32767 or height > 32767 ->
|
||||
add_error(changeset, :image, "side dimensions are larger than 32767 px")
|
||||
|
|
Loading…
Reference in a new issue