mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 20:50:22 +03:00
fix: close helmInfo file descriptor (#16319)
This commit is contained in:
+1
-1
@@ -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=") {
|
||||||
|
|||||||
Reference in New Issue
Block a user