chore: remove repetitive words (#31153)

Signed-off-by: gcmutator <329964069@qq.com>
pull/30888/head
gcmutator 2024-03-20 10:17:07 +08:00 committed by GitHub
parent c3d53eb1bf
commit 6edd06083f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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)

View File

@ -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