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

master
Harshavardhana 6 years ago committed by GitHub
parent 707ed2b302
commit 55aa20595f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      cmd/xl-sets.go

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

Loading…
Cancel
Save