mirror of
https://github.com/minio/minio.git
synced 2025-02-03 18:06:00 -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 ""
|
return ""
|
||||||
}
|
}
|
||||||
|
defer helmInfoFile.Close()
|
||||||
scanner := bufio.NewScanner(helmInfoFile)
|
scanner := bufio.NewScanner(helmInfoFile)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
if strings.Contains(scanner.Text(), "chart=") {
|
if strings.Contains(scanner.Text(), "chart=") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user