mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Add deadcode code which recursivley goes into all directories and verifies dangling variables.
This commit is contained in:
@@ -40,6 +40,10 @@ func (server *minioApi) listObjectsHandler(w http.ResponseWriter, req *http.Requ
|
||||
return
|
||||
}
|
||||
|
||||
if resources.Maxkeys == 0 {
|
||||
resources.Maxkeys = maxObjectList
|
||||
}
|
||||
|
||||
acceptsContentType := getContentType(req)
|
||||
objects, resources, err := server.storage.ListObjects(bucket, resources)
|
||||
switch err := err.(type) {
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
|
||||
// Limit number of objects in a given response
|
||||
const (
|
||||
MAX_OBJECT_LIST = 1000
|
||||
maxObjectList = 1000
|
||||
)
|
||||
|
||||
// Object list response format
|
||||
|
||||
Reference in New Issue
Block a user