Skip to content

Commit

Permalink
[PLATFORM-1249]: Fix compilation error due to nil value in children l…
Browse files Browse the repository at this point in the history
…ist (#167)
  • Loading branch information
cpiemontese authored Aug 30, 2023
1 parent ba08b68 commit a03e815
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- If no client is defined, application doesn't fail to start

---

## [0.6.2] - 2023-08-25
Expand Down
8 changes: 2 additions & 6 deletions lib/prima_auth0_ex/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ defmodule PrimaAuth0Ex.Application do
end

defp client_children do
if Config.default_client() do
[
{TokenProvider, credentials: PrimaAuth0Ex.Auth0Credentials.from_env(), name: :default_client}
]
end

if Config.clients() do
Config.clients()
|> Keyword.keys()
Expand All @@ -40,6 +34,8 @@ defmodule PrimaAuth0Ex.Application do
| acc
]
end)
else
[]
end
end

Expand Down

0 comments on commit a03e815

Please sign in to comment.