Skip to content

Commit

Permalink
Set a default config on Keyword.get
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraBeatris committed Mar 30, 2024
1 parent 61c421b commit de708c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oidc/provider_configuration/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,6 @@ defmodule ShinAuth.OIDC.ProviderConfiguration.Client do
defp default_config, do: Application.get_env(:shin_auth, :provider_configuration_fetcher)

defp get_http_client(config) do
Keyword.get(config, :http_client, HTTPoison)
Keyword.get(config || [], :http_client, HTTPoison)
end
end

0 comments on commit de708c1

Please sign in to comment.