Skip to content

Commit

Permalink
Fix typo in AWS.Request
Browse files Browse the repository at this point in the history
  • Loading branch information
janpieper committed May 15, 2024
1 parent 28b9035 commit c904848
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/aws/request.ex
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ defmodule AWS.Request do
endpoint_fun.(build_options)

%{global?: true, endpoint: endpoint} ->
endpoint = resolve_endpoint_sufix(endpoint)
endpoint = resolve_endpoint_suffix(endpoint)

region =
if metadata.credential_scope != nil do
Expand All @@ -218,7 +218,7 @@ defmodule AWS.Request do
)

%{endpoint: endpoint} ->
endpoint = resolve_endpoint_sufix(endpoint)
endpoint = resolve_endpoint_suffix(endpoint)

build_final_endpoint(
[
Expand All @@ -231,11 +231,11 @@ defmodule AWS.Request do
end
end

defp resolve_endpoint_sufix({:keep_prefixes, sufix}) when is_binary(sufix) do
sufix
defp resolve_endpoint_suffix({:keep_prefixes, suffix}) when is_binary(suffix) do
suffix
end

defp resolve_endpoint_sufix(nil), do: Client.default_endpoint()
defp resolve_endpoint_suffix(nil), do: Client.default_endpoint()

defp build_final_endpoint(parts, options) do
parts =
Expand Down

0 comments on commit c904848

Please sign in to comment.