mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
fix: tests error conditions should be used properly. (#4833)
This commit is contained in:
committed by
Dee Koder
parent
b233345f19
commit
db5af1b126
@@ -38,7 +38,8 @@ func (s *ErasureStorage) CreateFile(src io.Reader, volume, path string, buffer [
|
||||
errChans[i] = make(chan error, 1) // create buffered channel to let finished go-routines die early
|
||||
}
|
||||
|
||||
blocks, n := [][]byte{}, len(buffer)
|
||||
var blocks [][]byte
|
||||
var n = len(buffer)
|
||||
for n == len(buffer) {
|
||||
n, err = io.ReadFull(src, buffer)
|
||||
if n == 0 && err == io.EOF {
|
||||
|
||||
Reference in New Issue
Block a user