Skip to content

Commit 1e85adc

Browse files
antonkesyJuneStepp
authored andcommitted
refactor(config_manager): remove redundant len call
1 parent c51cca5 commit 1e85adc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/onelauncher/config_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def convert_to_toml(
119119
tables.append((key, table))
120120
elif (
121121
isinstance(val, list)
122-
and len(val)
122+
and val
123123
and all(isinstance(item, dict) for item in val)
124124
):
125125
table_array = tomlkit.aot()

0 commit comments

Comments
 (0)