mirror of
https://github.com/ehang-io/nps
synced 2025-10-30 15:26:58 +08: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