Updated defer delete call

pull/2300/head
Sushil Kumar 8 years ago
parent d13b134ffb
commit 2a5ab59895

@ -187,9 +187,7 @@ func FindChartInRepoURL(repoURL, chartName, chartVersion, certFile, keyFile, caF
if err != nil {
return "", fmt.Errorf("cannot write index file for repository requested")
}
defer func() {
os.Remove(tempIndexFile.Name())
}()
defer os.Remove(tempIndexFile.Name())
c := Entry{
URL: repoURL,

Loading…
Cancel
Save