mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
Merge pull request #32046 from guangxuli/close_readBytesFromFile
Automatic merge from submit-queue close the open file the open file should be close.
This commit is contained in:
commit
ce1c113442
@ -1527,7 +1527,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