Pleroma.MFA: fix gradient error

lib/pleroma/mfa.ex: The map %{error: msg} on line 80 is expected to have type {:ok, list(binary())} | {:error, String.t()} but it has type %{required(:error) => any()}
This commit is contained in:
Mark Felder 2024-01-31 13:50:43 -05:00
parent 7745ee27bc
commit cccfdde14c

View File

@ -77,7 +77,7 @@ defmodule Pleroma.MFA do
{:ok, codes} {:ok, codes}
else else
{:error, msg} -> {:error, msg} ->
%{error: msg} {:error, msg}
end end
end end