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