mirror of
https://github.com/ehang-io/nps
synced 2025-10-30 15:26:58 +08:00
Close file
This commit is contained in:
@@ -119,6 +119,7 @@ func ReadAllFromFile(filePath string) ([]byte, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer f.Close()
|
||||
return ioutil.ReadAll(f)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user