fix: close helmInfo file descriptor (#16319)
This commit is contained in:
@@ -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=") {
|
||||
|
||||
Reference in New Issue
Block a user