Skip to content

Commit bf783a7

Browse files
authored
fix: Correct typo in appenPath function name (#17917)
1 parent 2fb1f7e commit bf783a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/deprecated-config-checker/checker/checker.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func (d DeprecationNotes) String() string {
182182
return sb.String()
183183
}
184184

185-
func appenToPath(path, key string) string {
185+
func appendToPath(path, key string) string {
186186
if path == "" {
187187
return key
188188
}
@@ -221,8 +221,8 @@ func checkRuntimeConfigDeprecated(deprecates, runtimeConfig RawYaml) []Deprecati
221221
for tenant, tenantOverrides := range overrides {
222222
tenantDeprecations := checkConfigDeprecated(deprecatedLimits, tenantOverrides.(RawYaml))
223223
for i := range tenantDeprecations {
224-
tenantPath := appenToPath("overrides", tenant)
225-
tenantDeprecations[i].ItemPath = appenToPath(tenantPath, tenantDeprecations[i].ItemPath)
224+
tenantPath := appendToPath("overrides", tenant)
225+
tenantDeprecations[i].ItemPath = appendToPath(tenantPath, tenantDeprecations[i].ItemPath)
226226
}
227227
deprecations = append(deprecations, tenantDeprecations...)
228228
}
@@ -242,7 +242,7 @@ func enumerateDeprecatesFields(deprecates, input RawYaml, rootPath string, depre
242242
continue
243243
}
244244

245-
path := appenToPath(rootPath, key)
245+
path := appendToPath(rootPath, key)
246246

247247
note, isDeprecatedNote := getDeprecationAnnotation(deprecate)
248248
if isDeprecatedNote {
@@ -297,7 +297,7 @@ func enumerateDeprecatesFields(deprecates, input RawYaml, rootPath string, depre
297297
// If the config is a list, recurse into each item.
298298
for i, item := range v {
299299
itemYaml := item.(RawYaml)
300-
deprecations = enumerateDeprecatesFields(deprecateYaml, itemYaml, appenToPath(path, fmt.Sprintf("[%d]", i)), deprecations)
300+
deprecations = enumerateDeprecatesFields(deprecateYaml, itemYaml, appendToPath(path, fmt.Sprintf("[%d]", i)), deprecations)
301301
}
302302
}
303303
}

0 commit comments

Comments
 (0)