Skip to content

Commit

Permalink
The Base.request!/1 return value is not wrapped in a ok-tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
flambard authored and edgurgel committed Nov 24, 2023
1 parent 9cb1eb6 commit 0622f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/httpoison/base.ex
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ defmodule HTTPoison.Base do
response in case of a successful request, raising an exception in case the
request fails.
"""
@spec request!(Request.t()) :: {:ok, Response.t() | AsyncResponse.t() | MaybeRedirect.t()}
@spec request!(Request.t()) :: Response.t() | AsyncResponse.t() | MaybeRedirect.t()
def request!(%Request{} = request) do
case request(request) do
{:ok, response} -> response
Expand Down

0 comments on commit 0622f80

Please sign in to comment.