Skip to content

Commit

Permalink
fix: build_url key lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed Oct 24, 2024
1 parent 4be783a commit c267bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tesla.ex
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ defmodule Tesla do
@spec build_url(Tesla.Env.t()) :: String.t()
def build_url(%Tesla.Env{} = env) do
query_encoding = Keyword.get(env.opts, :query_encoding, :www_form)

Check warning on line 348 in lib/tesla.ex

View workflow job for this annotation

GitHub Actions / Gun 1

variable "query_encoding" is unused (if the variable is not meant to be used, prefix it with an underscore)

Check warning on line 348 in lib/tesla.ex

View workflow job for this annotation

GitHub Actions / OTP 25.3.2.12 / Elixir 1.15.8

variable "query_encoding" is unused (if the variable is not meant to be used, prefix it with an underscore)
Tesla.build_url(url, query, encoding)
Tesla.build_url(env.url, env.query, encoding)
end

def encode_query(query, encoding \\ :www_form) do
Expand Down

0 comments on commit c267bbd

Please sign in to comment.