data/file: Return EOF on reads past end
This commit is contained in:
parent
0acad8eeac
commit
bb77502eab
@ -53,9 +53,10 @@ func (me data) ReadAt(p []byte, off int64) (n int, err error) {
|
||||
off = 0
|
||||
p = p[n1:]
|
||||
if len(p) == 0 {
|
||||
break
|
||||
return
|
||||
}
|
||||
}
|
||||
err = io.EOF
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user