mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-21 19:10:11 +08:00
typo
This commit is contained in:
@@ -19,7 +19,7 @@ func VerifyS3BucketName(name string) (err error) {
|
|||||||
if idx > 0 && (ch == '.' && name[idx-1] == '.') {
|
if idx > 0 && (ch == '.' && name[idx-1] == '.') {
|
||||||
return fmt.Errorf("bucket names must not contain two adjacent periods")
|
return fmt.Errorf("bucket names must not contain two adjacent periods")
|
||||||
}
|
}
|
||||||
//TODO buckets with s3 transfer accleration cannot have . in name
|
//TODO buckets with s3 transfer acceleration cannot have . in name
|
||||||
}
|
}
|
||||||
if name[0] == '.' || name[0] == '-' {
|
if name[0] == '.' || name[0] == '-' {
|
||||||
return fmt.Errorf("name must start with number or lower case character")
|
return fmt.Errorf("name must start with number or lower case character")
|
||||||
|
|||||||
Reference in New Issue
Block a user