From 775462a373365a10d145b21ce3b3bc5deb129fd4 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 8 Nov 2018 16:26:14 +0100 Subject: [PATCH] Forgot an {:ok} tuple Signed-off-by: Thomas Citharel --- config/prod.exs | 2 +- lib/service/http_signatures/http_signatures.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/prod.exs b/config/prod.exs index ee470490f..1033fcdce 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -41,7 +41,7 @@ config :mobilizon, Mobilizon.Mailer, no_mx_lookups: false # 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 # diff --git a/lib/service/http_signatures/http_signatures.ex b/lib/service/http_signatures/http_signatures.ex index 4327efcf7..e6e2f475e 100644 --- a/lib/service/http_signatures/http_signatures.ex +++ b/lib/service/http_signatures/http_signatures.ex @@ -43,7 +43,7 @@ defmodule Mobilizon.Service.HTTPSignatures do defp prepare_public_key(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 _err -> {:error, :pem_decode_error}