From 2446e1102d1d73cfd078c8998a245e16b31e6883 Mon Sep 17 00:00:00 2001 From: xiaoxiangxianzi Date: Wed, 27 Mar 2024 17:34:22 +0800 Subject: [PATCH] chore: remove repetitive words in comments Signed-off-by: xiaoxiangxianzi --- configuration/configuration.go | 2 +- registry/storage/blobwriter.go | 2 +- registry/storage/tagstore.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configuration/configuration.go b/configuration/configuration.go index 530a278d..42708197 100644 --- a/configuration/configuration.go +++ b/configuration/configuration.go @@ -279,7 +279,7 @@ type FileChecker struct { // Redis configures the redis pool available to the registry webapp. type Redis struct { - // Addr specifies the the redis instance available to the application. + // Addr specifies the redis instance available to the application. Addr string `yaml:"addr,omitempty"` // Usernames can be used as a finer-grained permission control since the introduction of the redis 6.0. diff --git a/registry/storage/blobwriter.go b/registry/storage/blobwriter.go index 9de3b0c2..62409812 100644 --- a/registry/storage/blobwriter.go +++ b/registry/storage/blobwriter.go @@ -230,7 +230,7 @@ func (bw *blobWriter) validateBlob(ctx context.Context, desc distribution.Descri } if fullHash { - // a fantastic optimization: if the the written data and the size are + // a fantastic optimization: if the written data and the size are // the same, we don't need to read the data from the backend. This is // because we've written the entire file in the lifecycle of the // current instance. diff --git a/registry/storage/tagstore.go b/registry/storage/tagstore.go index 766295e9..29dcf4e3 100644 --- a/registry/storage/tagstore.go +++ b/registry/storage/tagstore.go @@ -54,7 +54,7 @@ func (ts *tagStore) All(ctx context.Context) ([]string, error) { return tags, nil } -// Tag tags the digest with the given tag, updating the the store to point at +// Tag tags the digest with the given tag, updating the store to point at // the current tag. The digest must point to a manifest. func (ts *tagStore) Tag(ctx context.Context, tag string, desc distribution.Descriptor) error { currentPath, err := pathFor(manifestTagCurrentPathSpec{