From b1e36acfc6d1bb0d6bd4baad4988efd921a51e38 Mon Sep 17 00:00:00 2001 From: ArtemIsmagilov <118372045+ArtemIsmagilov@users.noreply.github.com> Date: Thu, 5 Dec 2024 22:24:41 +0400 Subject: [PATCH] remove dual list convert (#534) --- mmpy_bot/settings.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mmpy_bot/settings.py b/mmpy_bot/settings.py index 4b2753cf..628157d8 100644 --- a/mmpy_bot/settings.py +++ b/mmpy_bot/settings.py @@ -9,9 +9,7 @@ def _get_comma_separated_list(string: str, type=str): values = string.split(",") # Convert to the specified type if necessary. - if type is not str: - values = list([type(value) for value in values]) - return values + return values if type is str else [type(value) for value in values] def _is_valid_option(_type, valid_types):