Global refactoring #1

Merged
yoxu merged 4 commits from anavoi-pr into main 2025-09-03 21:21:07 +02:00
Showing only changes of commit 9ee5e4383f - Show all commits

refactor: removed useless checking block

anavoi 2025-09-03 20:22:47 +02:00

View file

@ -60,12 +60,6 @@ class Game:
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 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:
log.info("Players are not initialized")