Skip to content

Commit

Permalink
Fix formatting of elixir code with mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesE committed Sep 8, 2023
1 parent 552c31c commit ca2bf07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ex_owm/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ defmodule ExOwm.Api do
end

defp parse_json({:ok, json}), do: Jason.decode(json)
defp parse_json({:error, :unknown_api_response, response}), do: {:error, :unknown_api_response, response}

defp parse_json({:error, :unknown_api_response, response}),
do: {:error, :unknown_api_response, response}

defp parse_json({:error, reason, json_body}), do: {:error, reason, Jason.decode!(json_body)}
defp parse_json({:error, %HTTPoison.Error{} = reason}), do: {:error, reason}
end

0 comments on commit ca2bf07

Please sign in to comment.