Chore: Remove repetitive words (#84132)

remove repetitive words

Signed-off-by: carrychair <linghuchong404@gmail.com>
This commit is contained in:
carrychair 2024-03-11 20:55:18 +08:00 committed by GitHub
parent 2d0fc3ef33
commit 0913324668
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 6 additions and 6 deletions

View File

@ -39,6 +39,6 @@ type HealthCheckResult struct {
// Optional description for the data source // Optional description for the data source
Message string `json:"message,omitempty"` Message string `json:"message,omitempty"`
// Spec depends on the the plugin // Spec depends on the plugin
Details *common.Unstructured `json:"details,omitempty"` Details *common.Unstructured `json:"details,omitempty"`
} }

View File

@ -28,7 +28,7 @@ func GetOpenAPIDefinitions(builders []APIGroupBuilder) common.GetOpenAPIDefiniti
} }
} }
// Modify the the OpenAPI spec to include the additional routes. // Modify the OpenAPI spec to include the additional routes.
// Currently this requires: https://github.com/kubernetes/kube-openapi/pull/420 // Currently this requires: https://github.com/kubernetes/kube-openapi/pull/420
// In future k8s release, the hook will use Config3 rather than the same hook for both v2 and v3 // In future k8s release, the hook will use Config3 rather than the same hook for both v2 and v3
func getOpenAPIPostProcessor(version string, builders []APIGroupBuilder) func(*spec3.OpenAPI) (*spec3.OpenAPI, error) { func getOpenAPIPostProcessor(version string, builders []APIGroupBuilder) func(*spec3.OpenAPI) (*spec3.OpenAPI, error) {

View File

@ -57,7 +57,7 @@ func (md *Metadata) GetReleaseMode() (ReleaseMode, error) {
return md.ReleaseMode, nil return md.ReleaseMode, nil
} }
// VersionMap is a map of versions. Each key of the Versions map is an event that uses the the config as the value for that key. // VersionMap is a map of versions. Each key of the Versions map is an event that uses the config as the value for that key.
// For example, the 'pull_request' key will have data in it that might cause Grafana to be built differently in a pull request, // For example, the 'pull_request' key will have data in it that might cause Grafana to be built differently in a pull request,
// than the way it will be built in 'main' // than the way it will be built in 'main'
type VersionMap map[VersionMode]BuildConfig type VersionMap map[VersionMode]BuildConfig

View File

@ -196,7 +196,7 @@ func (ff *Float64Field) GetValue(idx int) *float64 {
return &f return &f
} }
// Len returns the the length of the field. // Len returns the length of the field.
func (ff *Float64Field) Len() int { func (ff *Float64Field) Len() int {
df := data.Field(*ff) df := data.Field(*ff)
return df.Len() return df.Len()

View File

@ -42,7 +42,7 @@ func TestCanGetRouteNameFromContext(t *testing.T) {
func TestOperationNameCanOnlyBeSetOnce(t *testing.T) { func TestOperationNameCanOnlyBeSetOnce(t *testing.T) {
req, _ := http.NewRequestWithContext(context.Background(), http.MethodPost, "https://grafana.com", nil) req, _ := http.NewRequestWithContext(context.Background(), http.MethodPost, "https://grafana.com", nil)
// set the the initial operation name // set the initial operation name
req = addRouteNameToContext(req, "first") req = addRouteNameToContext(req, "first")
// check that the operation name is set correctly // check that the operation name is set correctly

View File

@ -215,7 +215,7 @@ func levelsToTree(levels []*Level, names []string) *ProfileTree {
// If we still have levels to go, this should not happen. Something is probably wrong with the flamebearer data. // If we still have levels to go, this should not happen. Something is probably wrong with the flamebearer data.
if len(parentsStack) == 0 { if len(parentsStack) == 0 {
logger.Error("ParentsStack is empty but we are not at the the last level", "currentLevel", currentLevel, "function", logEntrypoint()) logger.Error("ParentsStack is empty but we are not at the last level", "currentLevel", currentLevel, "function", logEntrypoint())
break break
} }