Skip to content

Commit 885d59f

Browse files
committed
Delete unneeded parentheses
1 parent 0512fe0 commit 885d59f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chess/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2511,7 +2511,7 @@ def start(self, engine: XBoardProtocol) -> None:
25112511
result = "*"
25122512
ending = game_ending or ""
25132513
elif winner is not None or game_ending:
2514-
result = "1-0" if winner == chess.WHITE else ("0-1" if winner == chess.BLACK else "1/2-1/2")
2514+
result = "1-0" if winner == chess.WHITE else "0-1" if winner == chess.BLACK else "1/2-1/2"
25152515
ending = game_ending or ""
25162516
elif outcome is not None and outcome.winner is not None:
25172517
result = outcome.result()

0 commit comments

Comments
 (0)