mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-16 15:20:17 +00:00
close the open file
This commit is contained in:
parent
2ead4ba589
commit
294558be84
@ -1530,7 +1530,7 @@ func readBytesFromFile(filename string) []byte {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
framework.Failf(err.Error())
|
framework.Failf(err.Error())
|
||||||
}
|
}
|
||||||
|
defer file.Close()
|
||||||
data, err := ioutil.ReadAll(file)
|
data, err := ioutil.ReadAll(file)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
framework.Failf(err.Error())
|
framework.Failf(err.Error())
|
||||||
|
Loading…
Reference in New Issue
Block a user