diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-19 09:38:49 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-19 12:12:57 +1100 |
commit | a34bdf1a046c90c22a1c0b653241b8107e89c7f9 (patch) | |
tree | 4de55d492803487a6575c976f89875744a7d3b7b /pkg/cheatsheet/generate.go | |
parent | d93fef4c61db20dd9e2bb535c2fbb742cdbed60a (diff) |
update linters
Diffstat (limited to 'pkg/cheatsheet/generate.go')
-rw-r--r-- | pkg/cheatsheet/generate.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/cheatsheet/generate.go b/pkg/cheatsheet/generate.go index 804cb6b45..c7c2b0d37 100644 --- a/pkg/cheatsheet/generate.go +++ b/pkg/cheatsheet/generate.go @@ -174,7 +174,7 @@ outer: bindings []*types.Binding } - groupedBindings := make([]groupedBindingsType, len(contextAndViewBindingMap)) + groupedBindings := make([]groupedBindingsType, 0, len(contextAndViewBindingMap)) for contextAndView, contextBindings := range contextAndViewBindingMap { groupedBindings = append(groupedBindings, groupedBindingsType{contextAndView: contextAndView, bindings: contextBindings}) |