mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
fs/object: Fix issues from review comments.
This commit is contained in:
@@ -81,8 +81,8 @@ func IsValidObjectName(object string) bool {
|
||||
// IsValidObjectPrefix verifies whether the prefix is a valid object name.
|
||||
// Its valid to have a empty prefix.
|
||||
func IsValidObjectPrefix(object string) bool {
|
||||
// Prefix can be empty.
|
||||
if object == "" {
|
||||
// Prefix can be empty or "/".
|
||||
if object == "" || object == "/" {
|
||||
return true
|
||||
}
|
||||
// Verify if prefix is a valid object name.
|
||||
|
||||
Reference in New Issue
Block a user