ignore EOF error

This commit is contained in:
Ulric Qin 2021-01-23 10:59:57 +08:00
parent aab2f8b090
commit 122590265d
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ func ReadNameAndMem(path string) (name string, memory uint64, err error) {
var bs []byte
bs, err = file.ReadLine(reader)
if err == io.EOF {
err = nil
return
}