diff options
author | Julien Dessaux | 2021-01-13 15:38:19 +0100 |
---|---|---|
committer | Julien Dessaux | 2021-01-13 15:38:19 +0100 |
commit | 19e747f1669d8ae64619686569929a59d5722b8c (patch) | |
tree | 370b8742f7563e1b750f5ad494e654a7fcc24838 /config/menu.go | |
parent | Properly test the minimal config contents (diff) | |
download | shell-game-launcher-19e747f1669d8ae64619686569929a59d5722b8c.tar.gz shell-game-launcher-19e747f1669d8ae64619686569929a59d5722b8c.tar.bz2 shell-game-launcher-19e747f1669d8ae64619686569929a59d5722b8c.zip |
Finished implementing config tests
Diffstat (limited to '')
-rw-r--r-- | config/menu.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/config/menu.go b/config/menu.go index f405ec5..a8ea7b0 100644 --- a/config/menu.go +++ b/config/menu.go @@ -70,9 +70,10 @@ func (m *Menu) validateConsistency(c *Config) error { return errors.New("No logged_in menu declared") } // Validate actions - menus := make(map[string]bool) - menus["anonymous"] = true - menus["logged_in"] = true + menus := map[string]bool{ + "anonymous": true, + "logged_in": true, + } playable := make(map[string]bool) for k, v := range c.Menus { for _, e := range v.MenuEntries { |