fix(bot): trim misleading comment in IsComplete
PR Checks / test-and-build (pull_request) Successful in 12m9s
PR Checks / test-and-build (pull_request) Successful in 12m9s
The previous comment claimed a 0 MaxPlayers would also be blocked, but the code never actually enforced that. The wizard's text-input path already guarantees cap >= MinCapacity, so 0 is unreachable. Drop the inaccurate half-sentence to keep the comment faithful to the code.
This commit is contained in:
@@ -230,10 +230,7 @@ public sealed class CreateSessionHandler
|
|||||||
{
|
{
|
||||||
if (p.Single?.ScheduledAt is null) missingFields.Add("дата/время");
|
if (p.Single?.ScheduledAt is null) missingFields.Add("дата/время");
|
||||||
// MaxPlayers = null is a valid "♾ Без лимита" choice
|
// MaxPlayers = null is a valid "♾ Без лимита" choice
|
||||||
// (see GameCreationWizard.ApplyCapacityChoice "no_limit"). Only a
|
// (see GameCreationWizard.ApplyCapacityChoice "no_limit").
|
||||||
// missing wizard step on the numeric-input path is a real defect;
|
|
||||||
// a non-null 0 also blocks (zero players is never what the user
|
|
||||||
// asked for). Treat null as "no limit" and accept it.
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user