Skip to content

Commit c9867cc

Browse files
committed
chore: fix typo
1 parent 866933b commit c9867cc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎internal/utils/decoders/decoders.go‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ func NormalizeKeys(keys map[string]string, rootName string, sep string) map[stri
1818

1919
finalKey = append(finalKey, rootName)
2020
finalKey = append(finalKey, "providers")
21-
cebabKey := strings.ToLower(k)
21+
kebabKey := strings.ToLower(k)
2222

2323
for _, known := range knownKeys {
24-
if strings.HasSuffix(cebabKey, strings.ReplaceAll(known, "-", sep)) {
24+
if strings.HasSuffix(kebabKey, strings.ReplaceAll(known, "-", sep)) {
2525
suffix = known
2626
break
2727
}
@@ -31,7 +31,7 @@ func NormalizeKeys(keys map[string]string, rootName string, sep string) map[stri
3131
continue
3232
}
3333

34-
clientNameParts := strings.Split(strings.TrimPrefix(strings.TrimSuffix(cebabKey, sep+strings.ReplaceAll(suffix, "-", sep)), "providers"+sep), sep)
34+
clientNameParts := strings.Split(strings.TrimPrefix(strings.TrimSuffix(kebabKey, sep+strings.ReplaceAll(suffix, "-", sep)), "providers"+sep), sep)
3535

3636
for i, p := range clientNameParts {
3737
if i == 0 {
@@ -46,9 +46,9 @@ func NormalizeKeys(keys map[string]string, rootName string, sep string) map[stri
4646

4747
finalKey = append(finalKey, camelClientName)
4848

49-
filedParts := strings.Split(suffix, "-")
49+
fieldParts := strings.Split(suffix, "-")
5050

51-
for i, p := range filedParts {
51+
for i, p := range fieldParts {
5252
if i == 0 {
5353
camelField += p
5454
continue

0 commit comments

Comments
 (0)