Fix invalid type
lib/pleroma/web/rich_media/parser.ex:105:unknown_type Unknown type: Integer.t/0.
This commit is contained in:
parent
467a65af90
commit
09ae0ab24a
|
@ -102,7 +102,7 @@ def ttl(data, url) do
|
||||||
ttl_setters: [MyModule]
|
ttl_setters: [MyModule]
|
||||||
"""
|
"""
|
||||||
@spec set_ttl_based_on_image(map(), String.t()) ::
|
@spec set_ttl_based_on_image(map(), String.t()) ::
|
||||||
{:ok, Integer.t() | :noop} | {:error, :no_key}
|
{:ok, integer() | :noop} | {:error, :no_key}
|
||||||
def set_ttl_based_on_image(data, url) do
|
def set_ttl_based_on_image(data, url) do
|
||||||
case get_ttl_from_image(data, url) do
|
case get_ttl_from_image(data, url) do
|
||||||
{:ok, ttl} when is_number(ttl) ->
|
{:ok, ttl} when is_number(ttl) ->
|
||||||
|
|
Loading…
Reference in New Issue