diff options
-rw-r--r-- | lib/polyjuice/client/endpoint.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/polyjuice/client/endpoint.ex b/lib/polyjuice/client/endpoint.ex index f6c8247..a328ea9 100644 --- a/lib/polyjuice/client/endpoint.ex +++ b/lib/polyjuice/client/endpoint.ex @@ -71,7 +71,7 @@ defmodule Polyjuice.Client.Endpoint do defprotocol BodyParser do @fallback_to_any true - @spec parse(endpoint_args :: __MODULE__.t(), body :: any) :: {:ok, any} | any + @spec parse(endpoint_args :: __MODULE__.t(), body :: any) :: any def parse(endpoint_args, body) end @@ -84,7 +84,7 @@ defmodule Polyjuice.Client.Endpoint do status_code :: integer(), headers :: [{String.t(), String.t()}, ...], body :: String.t() - ) :: {:ok, any} | any + ) :: any def parse_response(%{} = endpoint_args, status_code, headers, body) when is_integer(status_code) and is_list(headers) and is_binary(body) do # FIXME: check if content type is "application/json" |