From 6edd06083f45c8abc47ae155814f02ed81471fed Mon Sep 17 00:00:00 2001 From: gcmutator <134900551+gcmutator@users.noreply.github.com> Date: Wed, 20 Mar 2024 10:17:07 +0800 Subject: [PATCH] chore: remove repetitive words (#31153) Signed-off-by: gcmutator <329964069@qq.com> --- internal/core/build-support/cpplint.py | 2 +- internal/kv/etcd/etcd_kv.go | 2 +- pkg/util/timerecord/group_checker_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/core/build-support/cpplint.py b/internal/core/build-support/cpplint.py index 4a02ea3fc9..a320e58cca 100755 --- a/internal/core/build-support/cpplint.py +++ b/internal/core/build-support/cpplint.py @@ -3852,7 +3852,7 @@ def CheckOperatorSpacing(filename, clean_lines, linenum, error): elif not Match(r'#.*include', line): # Look for < that is not surrounded by spaces. This is only # triggered if both sides are missing spaces, even though - # technically should should flag if at least one side is missing a + # technically should flag if at least one side is missing a # space. This is done to avoid some false positives with shifts. match = Match(r'^(.*[^\s<])<[^\s=<,]', line) if match: diff --git a/internal/kv/etcd/etcd_kv.go b/internal/kv/etcd/etcd_kv.go index 2c06bc2068..79cb91d212 100644 --- a/internal/kv/etcd/etcd_kv.go +++ b/internal/kv/etcd/etcd_kv.go @@ -180,7 +180,7 @@ func (kv *etcdKV) LoadBytesWithPrefix(key string) ([]string, [][]byte, error) { return keys, values, nil } -// LoadBytesWithPrefix2 returns all the the keys,values and key versions with the given key prefix. +// LoadBytesWithPrefix2 returns all the keys,values and key versions with the given key prefix. func (kv *etcdKV) LoadBytesWithPrefix2(key string) ([]string, [][]byte, []int64, error) { start := time.Now() key = path.Join(kv.rootPath, key) diff --git a/pkg/util/timerecord/group_checker_test.go b/pkg/util/timerecord/group_checker_test.go index b2256944d6..4d3d84b58f 100644 --- a/pkg/util/timerecord/group_checker_test.go +++ b/pkg/util/timerecord/group_checker_test.go @@ -27,7 +27,7 @@ func TestGroupChecker(t *testing.T) { groupName := `test_group` signal := make(chan []string, 1) // 10ms period which set before is too short - // change 10ms to 500ms to ensure the the group checker schedule after the second value stored + // change 10ms to 500ms to ensure the group checker schedule after the second value stored duration := 500 * time.Millisecond gc1 := GetGroupChecker(groupName, duration, func(list []string) { signal <- list