Dialyzer: pattern can never match the type
This commit is contained in:
parent
a008005bdd
commit
fd62969dc4
@ -220,7 +220,6 @@ defmodule Pleroma.Web.ActivityPub.MRF.SimplePolicy do
|
|||||||
{:ok, object} <- check_object(object) do
|
{:ok, object} <- check_object(object) do
|
||||||
{:ok, object}
|
{:ok, object}
|
||||||
else
|
else
|
||||||
{:reject, nil} -> {:reject, "[SimplePolicy]"}
|
|
||||||
{:reject, _} = e -> e
|
{:reject, _} = e -> e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -235,7 +234,6 @@ defmodule Pleroma.Web.ActivityPub.MRF.SimplePolicy do
|
|||||||
{:ok, object} <- check_banner_removal(actor_info, object) do
|
{:ok, object} <- check_banner_removal(actor_info, object) do
|
||||||
{:ok, object}
|
{:ok, object}
|
||||||
else
|
else
|
||||||
{:reject, nil} -> {:reject, "[SimplePolicy]"}
|
|
||||||
{:reject, _} = e -> e
|
{:reject, _} = e -> e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -247,7 +245,6 @@ defmodule Pleroma.Web.ActivityPub.MRF.SimplePolicy do
|
|||||||
{:ok, object} <- check_reject(uri, object) do
|
{:ok, object} <- check_reject(uri, object) do
|
||||||
{:ok, object}
|
{:ok, object}
|
||||||
else
|
else
|
||||||
{:reject, nil} -> {:reject, "[SimplePolicy]"}
|
|
||||||
{:reject, _} = e -> e
|
{:reject, _} = e -> e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -620,7 +620,6 @@ defmodule Pleroma.Web.CommonAPI do
|
|||||||
set_visibility(activity, opts)
|
set_visibility(activity, opts)
|
||||||
else
|
else
|
||||||
nil -> {:error, :not_found}
|
nil -> {:error, :not_found}
|
||||||
{:error, reason} -> {:error, reason}
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user