Skip to content

Commit

Permalink
remove dual list convert (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemIsmagilov authored Dec 5, 2024
1 parent 6a94cbd commit b1e36ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mmpy_bot/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b1e36ac

Please sign in to comment.