Skip to content

Commit

Permalink
Tesla always raises on error; don't handle {:error, _} results
Browse files Browse the repository at this point in the history
  • Loading branch information
jwarlander committed Oct 13, 2016
1 parent a903181 commit ec40041
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/dayron/adapters/tesla_adapter.ex
Expand Up @@ -11,7 +11,6 @@ defmodule Dayron.TeslaAdapter do
## TODO
- Handle options to the Tesla client, see `Dayron.Adapter`
- Check test coverage
"""
@behaviour Dayron.Adapter

Expand Down Expand Up @@ -54,9 +53,6 @@ defmodule Dayron.TeslaAdapter do
}
}
end
defp translate_response({:error, response}) do
translate_error(response)
end

defp translate_response_body(""), do: nil
defp translate_response_body("ok"), do: %{}
Expand Down

0 comments on commit ec40041

Please sign in to comment.