Remove needless check for "None" list

This commit is contained in:
Matthias
2023-05-20 11:30:51 +02:00
parent 5142b6bc0d
commit 7b9f82c71a

View File

@@ -162,7 +162,6 @@ def start_lookahead_analysis(args: Dict[str, Any]) -> None:
strategy_list = [config['strategy']] strategy_list = [config['strategy']]
# check if strategies can be properly loaded, only check them if they can be. # check if strategies can be properly loaded, only check them if they can be.
if strategy_list is not None:
for strat in strategy_list: for strat in strategy_list:
for strategy_obj in strategy_objs: for strategy_obj in strategy_objs:
if strategy_obj['name'] == strat and strategy_obj not in strategy_list: if strategy_obj['name'] == strat and strategy_obj not in strategy_list: