mirror of https://github.com/ehang-io/nps
Close file
parent
d5488f8aa3
commit
592c39fb1d
|
@ -119,6 +119,7 @@ func ReadAllFromFile(filePath string) ([]byte, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer f.Close()
|
||||
return ioutil.ReadAll(f)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue