mirror of
https://github.com/tendermint/tendermint.git
synced 2026-06-02 12:26:21 +00:00
GroupReader#Read: return io.EOF if file is empty
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user