Fix warnings in akismet service

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-02-08 13:32:40 +01:00
parent 61441efbf7
commit cfa1754ab5
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -192,7 +192,7 @@ defmodule Mobilizon.Service.Akismet do
{email, ip} -> {email, ip} ->
{preferred_username, email, ip} {preferred_username, email, ip}
err -> _ ->
{:error, :invalid_actor} {:error, :invalid_actor}
end end
end end
@ -205,7 +205,7 @@ defmodule Mobilizon.Service.Akismet do
{nil, preferred_username, "127.0.0.1"} {nil, preferred_username, "127.0.0.1"}
end end
defp actor_details(err) do defp actor_details(_) do
{:error, :invalid_actor} {:error, :invalid_actor}
end end