Skip to content

Commit

Permalink
simplify per Howard's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
cweld510 committed Sep 5, 2024
1 parent f38590b commit b17146d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modal/cli/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,9 @@ def list(json: Optional[bool] = False):

# determine which environment is currently active, prioritizing the local default
# over the server default
cfg_default = config.get("environment")
active_env = None
active_env = config.get("environment")
for env in envs:
if env.name == cfg_default:
active_env = env.name
elif env.default is True and active_env is None:
if env.default is True and active_env is None:
active_env = env.name

table_data = []
Expand Down

0 comments on commit b17146d

Please sign in to comment.