mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Leverage sort Interface to provide sortUnique function
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/minio/minio-xl/pkg/probe"
|
||||
@@ -356,6 +357,6 @@ func (fs Filesystem) filterObjects(bucket string, content contentInfo, resources
|
||||
return ObjectMetadata{}, resources, err.Trace()
|
||||
}
|
||||
}
|
||||
sortUnique(resources.CommonPrefixes)
|
||||
sortUnique(sort.StringSlice(resources.CommonPrefixes))
|
||||
return metadata, resources, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user