GroupReader#Read: return io.EOF if file is empty
This commit is contained in:
parent
c75ddd0fa3
commit
21b2c26fb1
|
@ -606,6 +606,8 @@ func (gr *GroupReader) Read(p []byte) (n int, err error) {
|
|||
}
|
||||
} else if err != nil {
|
||||
return n, err
|
||||
} else if nn == 0 { // empty file
|
||||
return n, err
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue