mirror of
https://github.com/pgsty/minio.git
synced 2026-10-09 19:25:59 +03:00
Use const slashSeparator instead of "/" everywhere (#8028)
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ func (xl xlObjects) getLoadBalancedDisks() (disks []StorageAPI) {
|
||||
func (xl xlObjects) parentDirIsObject(ctx context.Context, bucket, parent string) bool {
|
||||
var isParentDirObject func(string) bool
|
||||
isParentDirObject = func(p string) bool {
|
||||
if p == "." || p == "/" {
|
||||
if p == "." || p == SlashSeparator {
|
||||
return false
|
||||
}
|
||||
if xl.isObject(bucket, p) {
|
||||
|
||||
Reference in New Issue
Block a user