fix: complete switch in StrToUserTeam and remove AI comments

This commit is contained in:
Grail Finder (aider)
2025-05-03 07:57:34 +03:00
parent 56c94c3987
commit 3aa0c15ff5

View File

@ -12,9 +12,14 @@ func StrToUserTeam(s string) WordColor {
switch s {
case "blue":
return UserTeamBlue
// finish this switch; ai!
case "red":
return UserTeamRed
case "none":
return UserTeamNone
}
return WordColorUserTeamNone
}
// every gohtml page should be recreated on reload in the needed state
type UserState struct {
Username string
Room RoomPublic