mirror of
https://github.com/minio/minio.git
synced 2024-12-25 22:55:54 -05:00
Renaming AppendUstr to AppendUniqStr
This commit is contained in:
parent
81ede6c3fe
commit
32f8c17174
@ -379,7 +379,7 @@ func (storage *storage) ListObjects(bucket string, resources mstorage.BucketReso
|
|||||||
}
|
}
|
||||||
metadataList = append(metadataList, metadata)
|
metadataList = append(metadataList, metadata)
|
||||||
case delimited != "":
|
case delimited != "":
|
||||||
resources.CommonPrefixes = helpers.AppendUstr(resources.CommonPrefixes, delimited)
|
resources.CommonPrefixes = helpers.AppendUniqStr(resources.CommonPrefixes, delimited)
|
||||||
}
|
}
|
||||||
case resources.Delimiter != "" && strings.HasPrefix(name, resources.Prefix):
|
case resources.Delimiter != "" && strings.HasPrefix(name, resources.Prefix):
|
||||||
delimited := delimiter(name, resources.Delimiter)
|
delimited := delimiter(name, resources.Delimiter)
|
||||||
@ -394,7 +394,7 @@ func (storage *storage) ListObjects(bucket string, resources mstorage.BucketReso
|
|||||||
}
|
}
|
||||||
metadataList = append(metadataList, metadata)
|
metadataList = append(metadataList, metadata)
|
||||||
case delimited != "":
|
case delimited != "":
|
||||||
resources.CommonPrefixes = helpers.AppendUstr(resources.CommonPrefixes, delimited)
|
resources.CommonPrefixes = helpers.AppendUniqStr(resources.CommonPrefixes, delimited)
|
||||||
}
|
}
|
||||||
case strings.HasPrefix(name, resources.Prefix):
|
case strings.HasPrefix(name, resources.Prefix):
|
||||||
metadata := mstorage.ObjectMetadata{
|
metadata := mstorage.ObjectMetadata{
|
||||||
|
@ -40,7 +40,7 @@ func AppendUniqInt(slice []int, i int) []int {
|
|||||||
return append(slice, i)
|
return append(slice, i)
|
||||||
}
|
}
|
||||||
|
|
||||||
func AppendUstr(slice []string, i string) []string {
|
func AppendUniqStr(slice []string, i string) []string {
|
||||||
for _, ele := range slice {
|
for _, ele := range slice {
|
||||||
if ele == i {
|
if ele == i {
|
||||||
return slice
|
return slice
|
||||||
|
Loading…
Reference in New Issue
Block a user