fix: some flyby typos in the code (#19212)

Signed-off-by: thirdkeyword <fliterdashen@gmail.com>
This commit is contained in:
huajin tong
2024-03-11 05:09:36 +08:00
committed by GitHub
parent b2c5b75efa
commit a25a8312d8
3 changed files with 5 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ const (
noObjLayerFlag
)
// Has checks if the the given flag is enabled in `h`.
// Has checks if the given flag is enabled in `h`.
func (h hFlag) Has(flag hFlag) bool {
// Use bitwise-AND and check if the result is non-zero.
return h&flag != 0

View File

@@ -1851,7 +1851,7 @@ func testAPICopyObjectPartHandler(obj ObjectLayer, instanceType, bucketName stri
// expected output.
expectedRespStatus int
}{
// Test case - 1, copy part 1 from from newObject1, ignore request headers.
// Test case - 1, copy part 1 from newObject1, ignore request headers.
{
bucketName: bucketName,
uploadID: uploadID,
@@ -2011,7 +2011,7 @@ func testAPICopyObjectPartHandler(obj ObjectLayer, instanceType, bucketName stri
secretKey: credentials.SecretKey,
expectedRespStatus: http.StatusOK,
},
// Test case - 14, copy part 1 from from newObject1 with null versionId
// Test case - 14, copy part 1 from newObject1 with null versionId
{
bucketName: bucketName,
uploadID: uploadID,
@@ -2020,7 +2020,7 @@ func testAPICopyObjectPartHandler(obj ObjectLayer, instanceType, bucketName stri
secretKey: credentials.SecretKey,
expectedRespStatus: http.StatusOK,
},
// Test case - 15, copy part 1 from from newObject1 with non null versionId
// Test case - 15, copy part 1 from newObject1 with non null versionId
{
bucketName: bucketName,
uploadID: uploadID,