Global refactoring #1
1 changed files with 1 additions and 7 deletions
refactor: removed useless checking block
commit
9ee5e4383f
6
main.py
6
main.py
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue