Skip to content

Commit

Permalink
nevermind, go back to the newer way
Browse files Browse the repository at this point in the history
  • Loading branch information
millllllz committed Jul 12, 2019
1 parent a05e6e1 commit b656ff5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/http.ex
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ defmodule Braintree.HTTP do
merchant_id = get_lazy_env(opts, :merchant_id)
endpoint = get_lazy_env(opts, :endpoint, Keyword.fetch!(@endpoints, environment))

endpoint
|> URI.merge("#{merchant_id}/#{path}")
|> to_string
Keyword.fetch!(@endpoints, environment) <> merchant_id <> "/" <> path
end

defp maybe_to_atom(value) when is_binary(value), do: String.to_existing_atom(value)
Expand Down

0 comments on commit b656ff5

Please sign in to comment.