From d791de36aa493a55d9780bb27ec729568ae4842a Mon Sep 17 00:00:00 2001 From: Simon <37269807+sdsznsk@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:12:48 +0100 Subject: [PATCH] Remove unnecessary for loop when adding admins Co-authored-by: jonpas --- launch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/launch.py b/launch.py index 469afd4..7cca7a8 100644 --- a/launch.py +++ b/launch.py @@ -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"):