dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 3f054dbfae5eb161c14389b0ffc02a0faff847b5
parent 58466175df3258a5d3a0163222526880d925f9d2
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Tue,  5 Dec 2023 21:36:55 -0500

cleanup

Diffstat:
Mpkg/web/handlers/poker/poker.go | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -361,10 +361,7 @@ func dealerThread(g *PokerGame, roomID string) { // Deal cards for cardIdx := 1; cardIdx <= NbCardsPerPlayer; cardIdx++ { for i, p := range g.Ongoing.Players { - if p == nil { - continue - } - if p.Cash == 0 { + if p == nil || p.Cash == 0 { continue } seatData := seats[i]