Skip to content

Commit

Permalink
Remove unnecessary for loop when adding admins
Browse files Browse the repository at this point in the history
Co-authored-by: jonpas <[email protected]>
  • Loading branch information
sdsznsk and jonpas authored Nov 23, 2023
1 parent d3e8091 commit d791de3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ def bool_str(text):
config["game"]["admins"] = []
admins = str(os.environ["GAME_ADMINS"]).split(",")
admins[:] = [admin for admin in admins if admin] # Remove empty items form list
for admin in admins:
config["game"]["admins"].append(admin)
config["game"]["admins"] = admins
if env_defined("GAME_SCENARIO_ID"):
config["game"]["scenarioId"] = os.environ["GAME_SCENARIO_ID"]
if env_defined("GAME_MAX_PLAYERS"):
Expand Down

0 comments on commit d791de3

Please sign in to comment.