mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-16 07:13:53 +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 {
|
||||
framework.Failf(err.Error())
|
||||
}
|
||||
|
||||
defer file.Close()
|
||||
data, err := ioutil.ReadAll(file)
|
||||
if err != nil {
|
||||
framework.Failf(err.Error())
|
||||
|
Loading…
Reference in New Issue
Block a user