aboutsummaryrefslogtreecommitdiff
path: root/config/menu.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-01-13 15:38:19 +0100
committerJulien Dessaux2021-01-13 15:38:19 +0100
commit19e747f1669d8ae64619686569929a59d5722b8c (patch)
tree370b8742f7563e1b750f5ad494e654a7fcc24838 /config/menu.go
parentProperly test the minimal config contents (diff)
downloadshell-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.go7
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 {