mirror of https://github.com/minio/minio.git
fix: some flyby typos in the code (#19212)
Signed-off-by: thirdkeyword <fliterdashen@gmail.com>
This commit is contained in:
parent
b2c5b75efa
commit
a25a8312d8
|
@ -60,7 +60,7 @@ const (
|
||||||
noObjLayerFlag
|
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 {
|
func (h hFlag) Has(flag hFlag) bool {
|
||||||
// Use bitwise-AND and check if the result is non-zero.
|
// Use bitwise-AND and check if the result is non-zero.
|
||||||
return h&flag != 0
|
return h&flag != 0
|
||||||
|
|
|
@ -1851,7 +1851,7 @@ func testAPICopyObjectPartHandler(obj ObjectLayer, instanceType, bucketName stri
|
||||||
// expected output.
|
// expected output.
|
||||||
expectedRespStatus int
|
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,
|
bucketName: bucketName,
|
||||||
uploadID: uploadID,
|
uploadID: uploadID,
|
||||||
|
@ -2011,7 +2011,7 @@ func testAPICopyObjectPartHandler(obj ObjectLayer, instanceType, bucketName stri
|
||||||
secretKey: credentials.SecretKey,
|
secretKey: credentials.SecretKey,
|
||||||
expectedRespStatus: http.StatusOK,
|
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,
|
bucketName: bucketName,
|
||||||
uploadID: uploadID,
|
uploadID: uploadID,
|
||||||
|
@ -2020,7 +2020,7 @@ func testAPICopyObjectPartHandler(obj ObjectLayer, instanceType, bucketName stri
|
||||||
secretKey: credentials.SecretKey,
|
secretKey: credentials.SecretKey,
|
||||||
expectedRespStatus: http.StatusOK,
|
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,
|
bucketName: bucketName,
|
||||||
uploadID: uploadID,
|
uploadID: uploadID,
|
||||||
|
|
|
@ -389,7 +389,7 @@ func parse(s string, strict bool) (ETag, error) {
|
||||||
|
|
||||||
// An S3 ETag may be a multipart ETag that
|
// An S3 ETag may be a multipart ETag that
|
||||||
// contains a '-' followed by a number.
|
// contains a '-' followed by a number.
|
||||||
// If the ETag does not a '-' is is either
|
// If the ETag does not a '-' is either
|
||||||
// a singlepart or encrypted ETag.
|
// a singlepart or encrypted ETag.
|
||||||
n := strings.IndexRune(s, '-')
|
n := strings.IndexRune(s, '-')
|
||||||
if n == -1 {
|
if n == -1 {
|
||||||
|
|
Loading…
Reference in New Issue