ignore EOF error
This commit is contained in:
parent
aab2f8b090
commit
122590265d
|
@ -108,6 +108,7 @@ func ReadNameAndMem(path string) (name string, memory uint64, err error) {
|
||||||
var bs []byte
|
var bs []byte
|
||||||
bs, err = file.ReadLine(reader)
|
bs, err = file.ReadLine(reader)
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
|
err = nil
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue