Remove an empty entry being added into XML marshal (#7656)

This commit is contained in:
Harshavardhana 2019-05-16 13:09:21 -07:00 committed by GitHub
parent 707ed2b302
commit 55aa20595f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -944,7 +944,6 @@ func (s *xlSets) ListObjects(ctx context.Context, bucket, prefix, marker, delimi
return loi, nil
}
loi.Objects = make([]ObjectInfo, len(entries.Files))
loi.IsTruncated = entries.IsTruncated
if loi.IsTruncated {
loi.NextMarker = entries.Files[len(entries.Files)-1].Name