From 5060fa3892df430385d2e41b866e8cce8d3d588f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Lindh=C3=A9?= Date: Fri, 10 Apr 2020 15:04:02 +0200 Subject: [PATCH] Use better internal names in createCacheFiles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Lindhé --- cmd/helm/repo_remove_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/helm/repo_remove_test.go b/cmd/helm/repo_remove_test.go index 2a641d4c1..16c2d5916 100644 --- a/cmd/helm/repo_remove_test.go +++ b/cmd/helm/repo_remove_test.go @@ -141,15 +141,15 @@ func TestRepoRemove(t *testing.T) { } func createCacheFiles(rootDir string, repoName string) (cacheIndexFile string, cacheChartsFile string) { - idx := filepath.Join(rootDir, helmpath.CacheIndexFile(repoName)) - mf, _ := os.Create(idx) + cacheIndexFile = filepath.Join(rootDir, helmpath.CacheIndexFile(repoName)) + mf, _ := os.Create(cacheIndexFile) mf.Close() - idx2 := filepath.Join(rootDir, helmpath.CacheChartsFile(repoName)) - mf, _ = os.Create(idx2) + cacheChartsFile = filepath.Join(rootDir, helmpath.CacheChartsFile(repoName)) + mf, _ = os.Create(cacheChartsFile) mf.Close() - return idx, idx2 + return cacheIndexFile, cacheChartsFile } func testCacheFiles(t *testing.T, cacheIndexFile string, cacheChartsFile string, repoName string) {