Skip to content

Commit

Permalink
change to map[string]string{} type
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
  • Loading branch information
theBeginner86 committed Jun 30, 2022
1 parent c423f15 commit 08f9235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/manifests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ func deleteFile(path string) error {

// This helps in formating the leftover fields using a pre-defined dictionary
func useDictionary(input string) string {
dict := map[interface{}]interface{}{ // includes Whitelist words
dict := map[string]string{ // includes Whitelist words
"Mesh Sync": "MeshSync",
}
for comp := range dict {
if comp == input {
return dict[comp].(string)
return dict[comp]
}
}
return input
Expand Down

0 comments on commit 08f9235

Please sign in to comment.