Skip to content

Commit

Permalink
Format file
Browse files Browse the repository at this point in the history
  • Loading branch information
edennis committed Jan 31, 2018
1 parent e035ed5 commit 6efe0ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/krakex/http_client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ defmodule Krakex.HTTPClient do
defp handle_response({:ok, response}), do: handle_http_response(response)
defp handle_response({:error, %{reason: reason}}), do: {:error, reason}

defp handle_http_response(%{status_code: status_code, body: body}) when status_code in 200..206 do
defp handle_http_response(%{status_code: status_code, body: body})
when status_code in 200..206 do
case Poison.decode(body) do
{:ok, decoded} -> {:ok, decoded}
{:error, :invalid, _} -> {:error, {:invalid, body}}
Expand Down

0 comments on commit 6efe0ab

Please sign in to comment.