Forgot an {:ok} tuple
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
d8bcf2016b
commit
775462a373
@ -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
|
||||||
#
|
#
|
||||||
|
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user