diff --git a/cmd/helm/repo_list.go b/cmd/helm/repo_list.go index 80ae887f4..37ae11fc0 100644 --- a/cmd/helm/repo_list.go +++ b/cmd/helm/repo_list.go @@ -107,7 +107,7 @@ func filterRepos(repos []*repo.Entry, ignoredRepoNames []string) []*repo.Entry { filteredRepos := make([]*repo.Entry, 0) - ignored := make(map[string]bool, 0) + ignored := make(map[string]bool, len(ignoredRepoNames)) for _, repo := range ignoredRepoNames { ignored[repo] = true }