From e47ad846c4b6100aaff7013a3516d329bde19194 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Mon, 9 Mar 2020 11:34:10 +1100 Subject: big golangci-lint cleanup --- scripts/generate_cheatsheet.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/generate_cheatsheet.go b/scripts/generate_cheatsheet.go index c5afdf5e9..1cfa3aab6 100644 --- a/scripts/generate_cheatsheet.go +++ b/scripts/generate_cheatsheet.go @@ -83,9 +83,7 @@ func getBindingSections(mApp *app.App) []*bindingSection { if len(binding.Contexts) == 0 { contexts = append(contexts, "") } else { - for _, context := range binding.Contexts { - contexts = append(contexts, context) - } + contexts = append(contexts, binding.Contexts...) } for _, context := range contexts { -- cgit v1.2.3