Use better internal names in createCacheFiles

Signed-off-by: Andreas Lindhé <andreas@lindhe.io>
pull/7791/head
Andreas Lindhé 6 years ago
parent 31f03bbb52
commit 5060fa3892

@ -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) {

Loading…
Cancel
Save