refactor(BlackJackService): simplify card dealing logic
All checks were successful
CI / Get Changed Files (pull_request) Successful in 5s
CI / prettier (pull_request) Successful in 21s
CI / test-build (pull_request) Successful in 40s
CI / eslint (pull_request) Successful in 48s
CI / Checkstyle Main (pull_request) Successful in 52s

This commit is contained in:
Jan-Marlon Leibl 2025-04-02 11:29:16 +02:00
parent 3ef5530e77
commit e9c4d4fbed
Signed by: jleibl
GPG key ID: 300B2F906DC6F1D5

View file

@ -46,11 +46,7 @@ public class BlackJackService {
return game;
}
if (game.isSplit()) {
dealCardToPlayer(game);
} else {
dealCardToPlayer(game);
}
updateGameStateAndBalance(game);