Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in AWS.Request #190

Merged
merged 1 commit into from
May 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading