mirror of
https://github.com/minio/minio.git
synced 2025-01-24 13:13:16 -05:00
fix: close helmInfo file descriptor (#16319)
This commit is contained in:
parent
6a04067514
commit
62cd918061
@ -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=") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user