Improved nickname validation code clarity

Improved accuracy of 2 responses:

`client/game/profile/nickname/validate`
`client/game/profile/nickname/change`
This commit is contained in:
Chomp
2025-05-21 16:09:11 +01:00
parent a3be7f25db
commit c39ab9e1e7
4 changed files with 49 additions and 39 deletions
@@ -68,7 +68,7 @@ public class CodeGenerator
{
if (code.GetLabel() == null)
{
return new List<Label>();
return [];
}
return [ (Label)code.GetLabel() ];