From 09bb2e24d6fbf9327c095e8710d310814405d045 Mon Sep 17 00:00:00 2001 From: pavedroad <138004431+pavedroad@users.noreply.github.com> Date: Thu, 14 Mar 2024 04:15:59 +0800 Subject: [PATCH] chore: remove repetitive words (#15449) Signed-off-by: pavedroad --- go/mysql/icuregex/compiler.go | 2 +- go/vt/vtctl/vtctl_test.go | 4 ++-- go/vt/vttablet/tabletmanager/vreplication/vcopier.go | 2 +- go/vt/vttablet/tabletserver/vstreamer/vstreamer.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go/mysql/icuregex/compiler.go b/go/mysql/icuregex/compiler.go index 6029bed7101..6aa92e268bb 100644 --- a/go/mysql/icuregex/compiler.go +++ b/go/mysql/icuregex/compiler.go @@ -328,7 +328,7 @@ func (c *compiler) compile(pat []rune) error { // Main loop for the regex pattern parsing state machine. // Runs once per state transition. // Each time through optionally performs, depending on the state table, - // - an advance to the the next pattern char + // - an advance to the next pattern char // - an action to be performed. // - pushing or popping a state to/from the local state return stack. // file regexcst.txt is the source for the state table. The logic behind diff --git a/go/vt/vtctl/vtctl_test.go b/go/vt/vtctl/vtctl_test.go index 92c1cb6549e..fe3564421b8 100644 --- a/go/vt/vtctl/vtctl_test.go +++ b/go/vt/vtctl/vtctl_test.go @@ -43,7 +43,7 @@ var ( unknownParamsLoggedDryRunVSchema string ) -// TestApplyVSchema tests the the MoveTables client command +// TestApplyVSchema tests the MoveTables client command // via the commandVRApplyVSchema() cmd handler. func TestApplyVSchema(t *testing.T) { shard := "0" @@ -139,7 +139,7 @@ Dry run: Skipping update of VSchema`, } } -// TestMoveTables tests the the MoveTables client command +// TestMoveTables tests the MoveTables client command // via the commandVReplicationWorkflow() cmd handler. // This currently only tests the Progress action (which is // a parent of the Show action) but it can be used to test diff --git a/go/vt/vttablet/tabletmanager/vreplication/vcopier.go b/go/vt/vttablet/tabletmanager/vreplication/vcopier.go index d92522bdc80..9057a55707f 100644 --- a/go/vt/vttablet/tabletmanager/vreplication/vcopier.go +++ b/go/vt/vttablet/tabletmanager/vreplication/vcopier.go @@ -830,7 +830,7 @@ func (vtl *vcopierCopyTaskLifecycle) after(state vcopierCopyTaskState) *vcopierC } // before returns a vcopierCopyTaskHooks that can be used to register callbacks -// to be triggered before the the specified vcopierCopyTaskState. +// to be triggered before the specified vcopierCopyTaskState. func (vtl *vcopierCopyTaskLifecycle) before(state vcopierCopyTaskState) *vcopierCopyTaskHooks { key := "before:" + state.String() if _, ok := vtl.hooks[key]; !ok { diff --git a/go/vt/vttablet/tabletserver/vstreamer/vstreamer.go b/go/vt/vttablet/tabletserver/vstreamer/vstreamer.go index da0d79a1bca..a1a69332a5e 100644 --- a/go/vt/vttablet/tabletserver/vstreamer/vstreamer.go +++ b/go/vt/vttablet/tabletserver/vstreamer/vstreamer.go @@ -768,7 +768,7 @@ func (vs *vstreamer) buildTableColumns(tm *mysql.TableMap) ([]*querypb.Field, er if err != nil { return nil, fmt.Errorf("unsupported type: %d, position: %d", typ, i) } - // Use the the collation inherited or the one specified explicitly for the + // Use the collation inherited or the one specified explicitly for the // column if one was provided in the event's optional metadata (MySQL only // provides this for text based columns). var coll collations.ID