mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-01 19:06:52 +00:00
@@ -121,6 +121,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