Forgot an {:ok} tuple

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-11-08 16:26:14 +01:00
parent f87b042c72
commit b2db190056
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ config :mobilizon, Mobilizon.Mailer,
no_mx_lookups: false no_mx_lookups: false
# Do not print debug messages in production # Do not print debug messages in production
config :logger, level: System.get_env("MOBILIZON_LOGLEVEL") |> String.to_atom || :info config :logger, level: System.get_env("MOBILIZON_LOGLEVEL") |> String.to_atom() || :info
# ## SSL Support # ## SSL Support
# #

View file

@ -43,7 +43,7 @@ defmodule Mobilizon.Service.HTTPSignatures do
defp prepare_public_key(public_key_code) do defp prepare_public_key(public_key_code) do
with [public_key_entry] <- :public_key.pem_decode(public_key_code) do with [public_key_entry] <- :public_key.pem_decode(public_key_code) do
:public_key.pem_entry_decode(public_key_entry) {:ok, :public_key.pem_entry_decode(public_key_entry)}
else else
_err -> _err ->
{:error, :pem_decode_error} {:error, :pem_decode_error}