Skip to content

Commit

Permalink
Improved logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bsquizz committed Aug 23, 2023
1 parent 2f1c4d2 commit ee107fd
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions bonfire/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,10 @@

def _get_auto_added_frontend_dependencies():
env_var = os.getenv("BONFIRE_FRONTEND_DEPENDENCIES")
result = set()

if env_var is None:
result = set(DEFAULT_FRONTEND_DEPENDENCIES)
elif env_var.strip() != "":
for app in env_var.split(","):
result.add(app.strip())

return result
return set(DEFAULT_FRONTEND_DEPENDENCIES)
return set([val.strip() for val in env_var.split(",") if val.strip()])


AUTO_ADDED_FRONTEND_DEPENDENCIES = _get_auto_added_frontend_dependencies()
Expand Down

0 comments on commit ee107fd

Please sign in to comment.