Update oauth.ex (#7)
Rewrite a conditional to avoid compiler notifications.
This commit is contained in:
parent
3ca733164e
commit
fdc7fe26fa
@ -100,10 +100,13 @@ defmodule Ueberauth.Strategy.Twitter.OAuth do
|
|||||||
client
|
client
|
||||||
|> Map.get(endpoint, endpoint)
|
|> Map.get(endpoint, endpoint)
|
||||||
|> endpoint(client)
|
|> endpoint(client)
|
||||||
|
|
||||||
unless params == nil do
|
endpoint =
|
||||||
endpoint = endpoint <> "?" <> URI.encode_query(params)
|
if params do
|
||||||
end
|
endpoint <> "?" <> URI.encode_query(params)
|
||||||
|
else
|
||||||
|
endpoint
|
||||||
|
end
|
||||||
|
|
||||||
endpoint
|
endpoint
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user