mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Make donut fully integrated back into API handlers
This commit is contained in:
12
commands.go
12
commands.go
@@ -8,18 +8,6 @@ import (
|
||||
"github.com/minio/minio/pkg/server/api"
|
||||
)
|
||||
|
||||
func removeDuplicates(slice []string) []string {
|
||||
newSlice := []string{}
|
||||
seen := make(map[string]struct{})
|
||||
for _, val := range slice {
|
||||
if _, ok := seen[val]; !ok {
|
||||
newSlice = append(newSlice, val)
|
||||
seen[val] = struct{}{}
|
||||
}
|
||||
}
|
||||
return newSlice
|
||||
}
|
||||
|
||||
var commands = []cli.Command{
|
||||
serverCmd,
|
||||
controlCmd,
|
||||
|
||||
Reference in New Issue
Block a user