diff --git a/cmd/cheat/cmd_list.go b/cmd/cheat/cmd_list.go index 502fa80..9907603 100644 --- a/cmd/cheat/cmd_list.go +++ b/cmd/cheat/cmd_list.go @@ -37,8 +37,8 @@ func cmdList(opts map[string]interface{}, conf config.Config) { // sheets with local sheets), here we simply want to create a slice // containing all sheets. flattened := []sheet.Sheet{} - for _, pathSheets := range cheatsheets { - for _, s := range pathSheets { + for _, pathsheets := range cheatsheets { + for _, s := range pathsheets { flattened = append(flattened, s) } }