@cryptotaxi247 / kubo / commits / 5614234d1

commands/http: MultiFileReader: Removed extraneous condition when checking next file

Matt Bell committed Nov 17, 2014 at 03:15 UTC 5614234d1d77952f9a7e7b71235e3261d199e113
1 file changed +1 -1
commands/http/multifilereader.go
+1 -1
@@ -43,7 +43,7 @@ func (mfr *MultiFileReader) Read(buf []byte) (written int, err error) {
43 // if the current file isn't set, advance to the next file
44 if mfr.currentFile == nil {
45 file, err := mfr.files.NextFile()
46 - if err == io.EOF || (err == nil && file == nil) {
46 + if err == io.EOF {
47 mfr.mpWriter.Close()
48 mfr.closed = true
49 } else if err != nil {