Skip to content

Commit

Permalink
Fix credo warning
Browse files Browse the repository at this point in the history
  • Loading branch information
danschultzer committed Mar 21, 2023
1 parent 419974a commit acd979a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/pow_assent/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ defmodule PowAssent.Config do
|> get_provider_config(provider)
|> deep_merge(new_provider_config)

mod = Keyword.get(provider_config, :strategy)

default_config =
provider_config
|> Keyword.get(:strategy)
|> apply(:default_config, [provider_config])
|> mod.default_config()
|> Keyword.take(Keyword.keys(provider_config))

updated_provider_config = deep_merge(default_config, provider_config)
Expand Down

0 comments on commit acd979a

Please sign in to comment.