From b08a2bb3249c8662a026f002eff29ec7c9ba1293 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Mon, 22 May 2023 20:14:01 +0800 Subject: [PATCH] chore(docs): Remove repetitive "the" (#13295) --- internal/templating/node.go | 2 +- plugins/inputs/cloudwatch/README.md | 2 +- plugins/inputs/consul/README.md | 2 +- plugins/inputs/directory_monitor/directory_monitor_test.go | 2 +- plugins/inputs/syslog/nontransparent_test.go | 4 ++-- plugins/inputs/syslog/octetcounting_test.go | 4 ++-- plugins/parsers/json_v2/parser.go | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/internal/templating/node.go b/internal/templating/node.go index 8466fa7b3..9c0a82949 100644 --- a/internal/templating/node.go +++ b/internal/templating/node.go @@ -29,7 +29,7 @@ func (n *node) recursiveInsert(values []string, template *Template) { return } - // See if the the current element already exists in the tree. If so, insert the + // See if the current element already exists in the tree. If so, insert the // into that sub-tree for _, v := range n.children { if v.value == values[0] { diff --git a/plugins/inputs/cloudwatch/README.md b/plugins/inputs/cloudwatch/README.md index c2f20d657..3dd70d916 100644 --- a/plugins/inputs/cloudwatch/README.md +++ b/plugins/inputs/cloudwatch/README.md @@ -154,7 +154,7 @@ pattern to allow monitoring of any CloudWatch Metric. Omitting or specifying a value of `'*'` for a dimension value configures all available metrics that contain a dimension with the specified name to be retrieved. If specifying >1 dimension, then the metric must contain *all* the -configured dimensions where the the value of the wildcard dimension is ignored. +configured dimensions where the value of the wildcard dimension is ignored. Example: diff --git a/plugins/inputs/consul/README.md b/plugins/inputs/consul/README.md index 07cf182eb..577e5f3b2 100644 --- a/plugins/inputs/consul/README.md +++ b/plugins/inputs/consul/README.md @@ -93,7 +93,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. - warning (integer) `passing`, `critical`, and `warning` are integer representations of the health -check state. A value of `1` represents that the status was the state of the the +check state. A value of `1` represents that the status was the state of the health check at this sample. `status` is string representation of the same state. diff --git a/plugins/inputs/directory_monitor/directory_monitor_test.go b/plugins/inputs/directory_monitor/directory_monitor_test.go index ed2fd53d8..0985810b0 100644 --- a/plugins/inputs/directory_monitor/directory_monitor_test.go +++ b/plugins/inputs/directory_monitor/directory_monitor_test.go @@ -655,7 +655,7 @@ func TestParseSubdirectoriesFilesIgnore(t *testing.T) { err = f.Close() require.NoError(t, err) - // Write json file to process into a subdirectory in the the 'process' directory. + // Write json file to process into a subdirectory in the 'process' directory. err = os.Mkdir(filepath.Join(processDirectory, "sub"), os.ModePerm) require.NoError(t, err) f, err = os.Create(filepath.Join(processDirectory, "sub", testJSONFile)) diff --git a/plugins/inputs/syslog/nontransparent_test.go b/plugins/inputs/syslog/nontransparent_test.go index 87f95ae7a..dda60fefc 100644 --- a/plugins/inputs/syslog/nontransparent_test.go +++ b/plugins/inputs/syslog/nontransparent_test.go @@ -188,7 +188,7 @@ func testStrictNonTransparent(t *testing.T, protocol string, address string, wan conn.Close() require.NoError(t, err) - // Wait that the the number of data points is accumulated + // Wait that the number of data points is accumulated // Since the receiver is running concurrently if tc.wantStrict != nil { acc.Wait(len(tc.wantStrict)) @@ -244,7 +244,7 @@ func testBestEffortNonTransparent(t *testing.T, protocol string, address string, require.NoError(t, err) conn.Close() - // Wait that the the number of data points is accumulated + // Wait that the number of data points is accumulated // Since the receiver is running concurrently if tc.wantBestEffort != nil { acc.Wait(len(tc.wantBestEffort)) diff --git a/plugins/inputs/syslog/octetcounting_test.go b/plugins/inputs/syslog/octetcounting_test.go index 29c068dce..94ccd031b 100644 --- a/plugins/inputs/syslog/octetcounting_test.go +++ b/plugins/inputs/syslog/octetcounting_test.go @@ -387,7 +387,7 @@ func testStrictOctetCounting(t *testing.T, protocol string, address string, want conn.Close() require.NoError(t, err) - // Wait that the the number of data points is accumulated + // Wait that the number of data points is accumulated // Since the receiver is running concurrently if tc.wantStrict != nil { acc.Wait(len(tc.wantStrict)) @@ -443,7 +443,7 @@ func testBestEffortOctetCounting(t *testing.T, protocol string, address string, require.NoError(t, err) conn.Close() - // Wait that the the number of data points is accumulated + // Wait that the number of data points is accumulated // Since the receiver is running concurrently if tc.wantBestEffort != nil { acc.Wait(len(tc.wantBestEffort)) diff --git a/plugins/parsers/json_v2/parser.go b/plugins/parsers/json_v2/parser.go index 65a0af497..3b82d1617 100644 --- a/plugins/parsers/json_v2/parser.go +++ b/plugins/parsers/json_v2/parser.go @@ -26,7 +26,7 @@ type Parser struct { // **** The struct fields bellow this comment are used for processing indvidual configs **** - // measurementName is the the name of the current config used in each line protocol + // measurementName is the name of the current config used in each line protocol measurementName string // **** Specific for object configuration ****