Skip to content

Commit

Permalink
fix reset
Browse files Browse the repository at this point in the history
  • Loading branch information
zemuldo committed Sep 10, 2023
1 parent ce34663 commit 815f916
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions lib/ex_secrets.ex
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ defmodule ExSecrets do
def clear_cache(), do: GenServer.cast(Cache, :clear)

def reset() do
providers = ExSecrets.Application.get_providers()

Enum.each(providers, fn provider ->
case Resolver.call(provider) do
{:error, _} -> :ok
provider -> Kernel.apply(provider, :reset, [])
end
end)
ExSecrets.Application.get_providers() |> Enum.each(&Kernel.apply(&1, :reset, []))
end
end
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule ExSecrets.MixProject do
def project do
[
app: :ex_secrets,
version: "0.1.4",
version: "0.1.6",
elixir: "~> 1.13",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit 815f916

Please sign in to comment.