mirror of https://github.com/k3s-io/k3s
close the open file
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