Skip to content

Commit

Permalink
Clean up unused clause tournament max size check.
Browse files Browse the repository at this point in the history
  • Loading branch information
zyro committed Jun 25, 2022
1 parent a41f39c commit 17ce9d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/core_tournament.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ func TournamentList(ctx context.Context, logger *zap.Logger, db *sql.DB, leaderb
if startActive > nowUnix || endActiveUnix < nowUnix {
canEnter = false
}
if canEnter && (!leaderboard.HasMaxSize() || size >= leaderboard.MaxSize) {
if canEnter && size >= leaderboard.MaxSize {
canEnter = false
}

Expand Down

0 comments on commit 17ce9d1

Please sign in to comment.