refactor: removed useless checking block

This commit is contained in:
anavoi 2025-09-03 20:22:47 +02:00
commit 9ee5e4383f

View file

@ -60,12 +60,6 @@ class Game:
Assign a random role to each player. Accepts optional lists (returned by load_lists). Assign a random role to each player. Accepts optional lists (returned by load_lists).
If lists are not supplied, it will attempt to read files itself. If lists are not supplied, it will attempt to read files itself.
""" """
if player_names is None or roles_list is None:
loaded = self.load_lists()
if not loaded:
return
player_names = loaded["players"]
roles_list = loaded["roles"]
if not player_names: if not player_names:
log.info("Players are not initialized") log.info("Players are not initialized")