mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Remove repetitive words (#84132)
remove repetitive words Signed-off-by: carrychair <linghuchong404@gmail.com>
This commit is contained in:
parent
2d0fc3ef33
commit
0913324668
@ -39,6 +39,6 @@ type HealthCheckResult struct {
|
||||
// Optional description for the data source
|
||||
Message string `json:"message,omitempty"`
|
||||
|
||||
// Spec depends on the the plugin
|
||||
// Spec depends on the plugin
|
||||
Details *common.Unstructured `json:"details,omitempty"`
|
||||
}
|
||||
|
@ -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
|
||||
// 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) {
|
||||
|
@ -57,7 +57,7 @@ func (md *Metadata) GetReleaseMode() (ReleaseMode, error) {
|
||||
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,
|
||||
// than the way it will be built in 'main'
|
||||
type VersionMap map[VersionMode]BuildConfig
|
||||
|
@ -196,7 +196,7 @@ func (ff *Float64Field) GetValue(idx int) *float64 {
|
||||
return &f
|
||||
}
|
||||
|
||||
// Len returns the the length of the field.
|
||||
// Len returns the length of the field.
|
||||
func (ff *Float64Field) Len() int {
|
||||
df := data.Field(*ff)
|
||||
return df.Len()
|
||||
|
@ -42,7 +42,7 @@ func TestCanGetRouteNameFromContext(t *testing.T) {
|
||||
func TestOperationNameCanOnlyBeSetOnce(t *testing.T) {
|
||||
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")
|
||||
|
||||
// check that the operation name is set correctly
|
||||
|
@ -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 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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user