diff --git a/cmd/update.go b/cmd/update.go index 650806bf2..a9cbd5aa4 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -181,7 +181,7 @@ func getHelmVersion(helmInfoFilePath string) string { } return "" } - + defer helmInfoFile.Close() scanner := bufio.NewScanner(helmInfoFile) for scanner.Scan() { if strings.Contains(scanner.Text(), "chart=") {