simplified some loops
These changes were done by running the following command:
gofmt -s -w *.go
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ func listGames(w http.ResponseWriter, req *http.Request) {
|
||||
for id, g := range games.m {
|
||||
players := make([]pout, 0)
|
||||
// TODO - players instead of robots?
|
||||
for p, _ := range g.players {
|
||||
for p := range g.players {
|
||||
for _, r := range p.Robots {
|
||||
players = append(players, pout{
|
||||
Name: r.Name,
|
||||
|
||||
Reference in New Issue
Block a user