Skip to content

Commit

Permalink
Merge pull request #23 from baldmountain/master
Browse files Browse the repository at this point in the history
Remove couple calls to deprecated functions and a debug println (IO.inspect)
  • Loading branch information
jeffweiss authored Dec 1, 2017
2 parents c73a688 + 4fac1cf commit 4b9de00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/forcex/bulk/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ defmodule Forcex.Bulk.Client do
end

defp extract_from_parameters(params, key) do
compound_key = "{urn:partner.soap.sforce.com}#{key}" |> to_char_list
compound_key = "{urn:partner.soap.sforce.com}#{key}" |> to_charlist
{^compound_key, _, [value]} = :lists.keyfind(compound_key, 1, params)
value |> to_string
end
Expand Down
5 changes: 3 additions & 2 deletions lib/forcex/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ defmodule Forcex.Client do

def locate_services(client) do
services = Forcex.services(client)
%{client | services: services}
|> IO.inspect
client = %{client | services: services}
Logger.debug(inspect(client))
client
end

defp handle_login_response(%{access_token: token, token_type: token_type, instance_url: endpoint}) do
Expand Down
2 changes: 1 addition & 1 deletion lib/forcex/util.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule Forcex.Util do

defp to_number(string) when is_binary(string) do
string
|> to_char_list
|> to_charlist
|> Enum.map(&char_to_num/1)
|> Enum.reduce(fn (v, acc) -> acc * 62 + v end)
end
Expand Down

0 comments on commit 4b9de00

Please sign in to comment.