Commit 5614234d authored by Matt Bell's avatar Matt Bell

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

parent a9d784cb
......@@ -43,7 +43,7 @@ func (mfr *MultiFileReader) Read(buf []byte) (written int, err error) {
// if the current file isn't set, advance to the next file
if mfr.currentFile == nil {
file, err := mfr.files.NextFile()
if err == io.EOF || (err == nil && file == nil) {
if err == io.EOF {
mfr.mpWriter.Close()
mfr.closed = true
} else if err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment