Skip to content

Commit

Permalink
update function arity in deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cgerling committed Oct 13, 2021
1 parent 144c4be commit 83cc0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/finch.ex
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ defmodule Finch do
end

def request(name, method, url, headers, body \\ nil, opts \\ []) do
IO.warn("Finch.request/6 is deprecated, use Finch.build/4 + Finch.request/3 instead")
IO.warn("Finch.request/6 is deprecated, use Finch.build/5 + Finch.request/3 instead")

build(method, url, headers, body)
|> request(name, opts)
Expand Down

0 comments on commit 83cc0f7

Please sign in to comment.