commit c07605f14f08025fef8a9b7f7124eda1f0784f2f
parent cac857301faf2b3d19555275bb5f0c42a5235870
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Fri, 15 Dec 2023 05:45:17 -0500
cleanup
Diffstat:
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go
@@ -560,11 +560,11 @@ OUTER:
if playerAlive == 1 {
break OUTER
}
- continue
+ continue LOOP
}
if evt.Player != pUsername {
- continue
+ continue LOOP
}
p.LastActionTS = time.Now()
@@ -582,7 +582,7 @@ OUTER:
if p.Bet < minBet {
msg := fmt.Sprintf("Need to bet %d", minBet-p.Bet)
PokerPubSub.Pub(roomUserTopic, ErrorMsgEvent{Message: msg})
- continue
+ continue LOOP
}
newLogEvent(g, roomLogsTopic, fmt.Sprintf("%s check", pUsername))
@@ -622,17 +622,17 @@ OUTER:
if bet < pokerTableMinBet {
msg := fmt.Sprintf("Bet (%d) is too low. Must bet at least %d", bet, pokerTableMinBet)
PokerPubSub.Pub(roomUserTopic, ErrorMsgEvent{Message: msg})
- continue
+ continue LOOP
}
if (p.Bet + bet) < minBet {
msg := fmt.Sprintf("Bet (%d) is too low. Must bet at least %d", bet, minBet-p.Bet)
PokerPubSub.Pub(roomUserTopic, ErrorMsgEvent{Message: msg})
- continue
+ continue LOOP
}
if bet > p.Cash {
msg := fmt.Sprintf("Bet (%d) is too high. Must bet at most %d", bet, p.Cash)
PokerPubSub.Pub(roomUserTopic, ErrorMsgEvent{Message: msg})
- continue
+ continue LOOP
}
if (p.Bet + bet) > minBet {
lastRaisePlayerIdx = playerToPlayIdx
@@ -648,10 +648,10 @@ OUTER:
newLogEvent(g, roomLogsTopic, logMsg)
} else {
- continue
+ continue LOOP
}
PokerPubSub.Pub(roomUserTopic, ErrorMsgEvent{Message: ""})
- break
+ break LOOP
}
}
// All settle when all players have the same bet amount