diff --git a/cmd/fs-v1-metadata.go b/cmd/fs-v1-metadata.go index 2b8b4df34..1a428681c 100644 --- a/cmd/fs-v1-metadata.go +++ b/cmd/fs-v1-metadata.go @@ -82,7 +82,7 @@ func (c FSChecksumInfoV1) MarshalJSON() ([]byte, error) { return json.Marshal(info) } -// UnmarshalJSON unmarshals the the given data into the FSChecksumInfoV1 struct +// UnmarshalJSON unmarshals the given data into the FSChecksumInfoV1 struct func (c *FSChecksumInfoV1) UnmarshalJSON(data []byte) error { type checksuminfo struct { Algorithm string `json:"algorithm"` diff --git a/cmd/storage-rest-server.go b/cmd/storage-rest-server.go index b54aa7fae..689310a2c 100644 --- a/cmd/storage-rest-server.go +++ b/cmd/storage-rest-server.go @@ -947,7 +947,7 @@ type httpStreamResponse struct { err error } -// Write part of the the streaming response. +// Write part of the streaming response. // Note that upstream errors are currently not forwarded, but may be in the future. func (h *httpStreamResponse) Write(b []byte) (int, error) { if len(b) == 0 || h.err != nil { diff --git a/cmd/test-utils_test.go b/cmd/test-utils_test.go index 9024955c0..e362f6a4a 100644 --- a/cmd/test-utils_test.go +++ b/cmd/test-utils_test.go @@ -1577,7 +1577,7 @@ func ExecObjectLayerAPIAnonTest(t *testing.T, obj ObjectLayer, testName, bucketN unknownSignTestStr := "Unknown HTTP signature test" // simple function which returns a message which gives the context of the test - // and then followed by the the actual error message. + // and then followed by the actual error message. failTestStr := func(testType, failMsg string) string { return fmt.Sprintf("MinIO %s: %s fail for \"%s\": \n %s", instanceType, testType, testName, failMsg) } diff --git a/internal/bucket/lifecycle/lifecycle.go b/internal/bucket/lifecycle/lifecycle.go index 2bfd5399c..4f67178c8 100644 --- a/internal/bucket/lifecycle/lifecycle.go +++ b/internal/bucket/lifecycle/lifecycle.go @@ -388,7 +388,7 @@ func (lc Lifecycle) ComputeAction(obj ObjectOpts) Action { } // ExpectedExpiryTime calculates the expiry, transition or restore date/time based on a object modtime. -// The expected transition or restore time is always a midnight time following the the object +// The expected transition or restore time is always a midnight time following the object // modification time plus the number of transition/restore days. // // e.g. If the object modtime is `Thu May 21 13:42:50 GMT 2020` and the object should diff --git a/internal/config/identity/tls/config.go b/internal/config/identity/tls/config.go index e3acf1be1..f2da538f9 100644 --- a/internal/config/identity/tls/config.go +++ b/internal/config/identity/tls/config.go @@ -106,7 +106,7 @@ const ( skipVerify = "skip_verify" ) -// DefaultKVS is the the default K/V config system for +// DefaultKVS is the default K/V config system for // the STS TLS API. var DefaultKVS = config.KVS{ config.KV{ diff --git a/internal/crypto/sse.go b/internal/crypto/sse.go index 9f4eeff68..422ff1488 100644 --- a/internal/crypto/sse.go +++ b/internal/crypto/sse.go @@ -99,7 +99,7 @@ func unsealObjectKey(clientKey []byte, metadata map[string]string, bucket, objec } // EncryptSinglePart encrypts an io.Reader which must be the -// the body of a single-part PUT request. +// body of a single-part PUT request. func EncryptSinglePart(r io.Reader, key ObjectKey) io.Reader { r, err := sio.EncryptReader(r, sio.Config{MinVersion: sio.Version20, Key: key[:], CipherSuites: fips.DARECiphers()}) if err != nil { diff --git a/internal/s3select/message.go b/internal/s3select/message.go index ecac40a5b..0f931dc92 100644 --- a/internal/s3select/message.go +++ b/internal/s3select/message.go @@ -64,7 +64,7 @@ var recordsHeader = []byte{ const ( // Chosen for compatibility with AWS JAVA SDK - // It has a a buffer size of 128K: + // It has a buffer size of 128K: // https://github.com/aws/aws-sdk-java/blob/master/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/eventstreaming/MessageDecoder.java#L26 // but we must make sure there is always space to add 256 bytes: // https://github.com/aws/aws-sdk-java/blob/master/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/SelectObjectContentEventStream.java#L197 diff --git a/main_contrib_test.go b/main_contrib_test.go index 76af072cb..677beee17 100644 --- a/main_contrib_test.go +++ b/main_contrib_test.go @@ -40,7 +40,7 @@ import ( // $ APP_ARGS="server /tmp/test" go test -cover -tags testrunmain -covermode count -coverpkg="./..." -coverprofile=coverage.cov // // 2. Run System-Tests (when using GitBash prefix this line with MSYS_NO_PATHCONV=1) -// Note the the SERVER_ENDPOINT must be reachable from inside the docker container (so don't use localhost!) +// Note the SERVER_ENDPOINT must be reachable from inside the docker container (so don't use localhost!) // $ podman run -e MINT_MODE=full -e SERVER_ENDPOINT=192.168.47.11:9000 -e ACCESS_KEY=minioadmin -e SECRET_KEY=minioadmin -v /tmp/mint/log:/mint/log minio/mint // // 3. Stop system under test by sending SIGTERM