Skip to content

Commit

Permalink
Fixing search results
Browse files Browse the repository at this point in the history
  • Loading branch information
wallentx committed Sep 30, 2024
1 parent 6e7a20d commit 4ad5a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/krew/cmd/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ type searchItem struct {
type searchCorpus []searchItem

func (s searchCorpus) descriptions() []string {
var res = make([]string, len(s))
res := make([]string, 0, len(s))
for _, corpus := range s {
res = append(res, corpus.description)
}
return res
}

func (s searchCorpus) names() []string {
var res = make([]string, len(s))
res := make([]string, 0, len(s))
for _, corpus := range s {
res = append(res, corpus.name)
}
Expand Down

0 comments on commit 4ad5a25

Please sign in to comment.