diff options
author | Thog <thog92@hotmail.fr> | 2017-11-19 02:22:07 +0100 |
---|---|---|
committer | Thog <thog92@hotmail.fr> | 2017-11-19 02:22:07 +0100 |
commit | 59770c3f5c9a038dbde6b2e1cd1551a7b8f1672b (patch) | |
tree | 178c9f13d02a3a168e1755f8dcbcde0d429315f4 /lib/pleroma/plugs/oauth_plug.ex | |
parent | ed3403ad8be255480d7e41f899d74fe9e5ef3f84 (diff) | |
download | pleroma-59770c3f5c9a038dbde6b2e1cd1551a7b8f1672b.tar.gz |
Fix all compilation warnings
Diffstat (limited to 'lib/pleroma/plugs/oauth_plug.ex')
-rw-r--r-- | lib/pleroma/plugs/oauth_plug.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/plugs/oauth_plug.ex b/lib/pleroma/plugs/oauth_plug.ex index 8366e35af..775423bb1 100644 --- a/lib/pleroma/plugs/oauth_plug.ex +++ b/lib/pleroma/plugs/oauth_plug.ex @@ -9,7 +9,7 @@ defmodule Pleroma.Plugs.OAuthPlug do end def call(%{assigns: %{user: %User{}}} = conn, _), do: conn - def call(conn, opts) do + def call(conn, _) do token = case get_req_header(conn, "authorization") do ["Bearer " <> header] -> header _ -> get_session(conn, :oauth_token) |