Skip to content

Commit

Permalink
Fix guard
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Aug 17, 2023
1 parent b88eb92 commit e265736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/req.ex
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ defmodule Req do
new(options1 ++ options2)
end

defp new(url, options) when is_binary(url) or (is_struct(url, URI) and is_list(options)) do
defp new(url, options) when (is_binary(url) or is_struct(url, URI)) and is_list(options) do
new([url: url] ++ options)
end

Expand Down

0 comments on commit e265736

Please sign in to comment.