Fix all compilation warnings

This commit is contained in:
Thog 2017-11-19 02:22:07 +01:00
commit 59770c3f5c
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6
26 changed files with 89 additions and 94 deletions

View file

@ -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)