Skip to content

Commit

Permalink
rename func to removeEscapesFromFlagPath
Browse files Browse the repository at this point in the history
  • Loading branch information
pPrecel committed Feb 2, 2025
1 parent 9fd9df6 commit ac6849e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/operator/internal/chart/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (fb *flagsBuilder) Build() map[string]interface{} {
flags := map[string]interface{}{}
for key, value := range fb.flags {
flagPath := strings.FieldsFunc(key, fieldsFuncWithExtrudes(key))
flagPath = removeExcludesFromFlagPath(flagPath)
flagPath = removeEscapesFromFlagPath(flagPath)
appendFlag(flags, flagPath, value)
}
return flags
Expand All @@ -60,7 +60,7 @@ func shouldBeSplit(flag string, index int, r rune) bool {
return index > 0 && flag[index-1] != '\\'
}

func removeExcludesFromFlagPath(flagPath []string) []string {
func removeEscapesFromFlagPath(flagPath []string) []string {
for i := range flagPath {
flagPath[i] = strings.ReplaceAll(flagPath[i], "\\", "")
}
Expand Down

0 comments on commit ac6849e

Please sign in to comment.