Skip to content

Commit dcfaa30

Browse files
committed
chore: remove duplicate word in comments
Signed-off-by: Abirdcfly Fu <[email protected]>
1 parent bf8cdc2 commit dcfaa30

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

oci/spec_opts_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ var WithAllCurrentCapabilities = func(ctx context.Context, client Client, c *con
143143
return WithCapabilities(caps)(ctx, client, c, s)
144144
}
145145

146-
// WithAllKnownCapabilities sets all the the known linux capabilities for the container process
146+
// WithAllKnownCapabilities sets all the known linux capabilities for the container process
147147
var WithAllKnownCapabilities = func(ctx context.Context, client Client, c *containers.Container, s *Spec) error {
148148
caps := cap.Known()
149149
return WithCapabilities(caps)(ctx, client, c, s)

oci/spec_opts_nonlinux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var WithAllCurrentCapabilities = func(ctx context.Context, client Client, c *con
3333
return WithCapabilities(nil)(ctx, client, c, s)
3434
}
3535

36-
// WithAllKnownCapabilities sets all the the known linux capabilities for the container process
36+
// WithAllKnownCapabilities sets all the known linux capabilities for the container process
3737
// nolint: deadcode, unused
3838
var WithAllKnownCapabilities = func(ctx context.Context, client Client, c *containers.Container, s *Spec) error {
3939
return WithCapabilities(nil)(ctx, client, c, s)

pkg/cri/sbserver/sandbox_portforward_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
)
3131

3232
// portForward uses netns to enter the sandbox namespace, and forwards a stream inside the
33-
// the namespace to a specific port. It keeps forwarding until it exits or client disconnect.
33+
// namespace to a specific port. It keeps forwarding until it exits or client disconnect.
3434
func (c *criService) portForward(ctx context.Context, id string, port int32, stream io.ReadWriteCloser) error {
3535
s, err := c.sandboxStore.Get(id)
3636
if err != nil {
@@ -83,7 +83,7 @@ func (c *criService) portForward(ctx context.Context, id string, port int32, str
8383
defer conn.Close()
8484

8585
errCh := make(chan error, 2)
86-
// Copy from the the namespace port connection to the client stream
86+
// Copy from the namespace port connection to the client stream
8787
go func() {
8888
log.G(ctx).Debugf("PortForward copying data from namespace %q port %d to the client stream", id, port)
8989
_, err := io.Copy(stream, conn)

pkg/cri/sbserver/sandbox_portforward_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
)
2929

3030
// portForward uses netns to enter the sandbox namespace, and forwards a stream inside the
31-
// the namespace to a specific port. It keeps forwarding until it exits or client disconnect.
31+
// namespace to a specific port. It keeps forwarding until it exits or client disconnect.
3232
func (c *criService) portForward(ctx context.Context, id string, port int32, stream io.ReadWriteCloser) error {
3333
return fmt.Errorf("port forward: %w", errdefs.ErrNotImplemented)
3434
}

pkg/cri/server/sandbox_portforward_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
)
3131

3232
// portForward uses netns to enter the sandbox namespace, and forwards a stream inside the
33-
// the namespace to a specific port. It keeps forwarding until it exits or client disconnect.
33+
// namespace to a specific port. It keeps forwarding until it exits or client disconnect.
3434
func (c *criService) portForward(ctx context.Context, id string, port int32, stream io.ReadWriteCloser) error {
3535
s, err := c.sandboxStore.Get(id)
3636
if err != nil {
@@ -83,7 +83,7 @@ func (c *criService) portForward(ctx context.Context, id string, port int32, str
8383
defer conn.Close()
8484

8585
errCh := make(chan error, 2)
86-
// Copy from the the namespace port connection to the client stream
86+
// Copy from the namespace port connection to the client stream
8787
go func() {
8888
log.G(ctx).Debugf("PortForward copying data from namespace %q port %d to the client stream", id, port)
8989
_, err := io.Copy(stream, conn)

pkg/cri/server/sandbox_portforward_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
)
2929

3030
// portForward uses netns to enter the sandbox namespace, and forwards a stream inside the
31-
// the namespace to a specific port. It keeps forwarding until it exits or client disconnect.
31+
// namespace to a specific port. It keeps forwarding until it exits or client disconnect.
3232
func (c *criService) portForward(ctx context.Context, id string, port int32, stream io.ReadWriteCloser) error {
3333
return fmt.Errorf("port forward: %w", errdefs.ErrNotImplemented)
3434
}

script/test/cri-integration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ cd "${ROOT}"
2828

2929
# FOCUS focuses the test to run.
3030
FOCUS=${FOCUS:-""}
31-
# REPORT_DIR is the the directory to store test logs.
31+
# REPORT_DIR is the directory to store test logs.
3232
if [ $IS_WINDOWS -eq 0 ]; then
3333
REPORT_DIR=${REPORT_DIR:-"/tmp/test-integration"}
3434
else

0 commit comments

Comments
 (0)