From 6216e306d2d58190b47b2b0a997e5c71852d7224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Lindh=C3=A9?= Date: Sat, 4 Apr 2020 19:36:03 +0200 Subject: [PATCH] Set ignored to be len(ignoredRepoNames) long MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Lindhé --- cmd/helm/repo_list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }