Added coverage, removed dead code from path utils

This commit is contained in:
quobix
2024-06-13 10:32:40 -04:00
parent cd5601e0d8
commit 65422f0c58
2 changed files with 11 additions and 5 deletions

View File

@@ -702,11 +702,6 @@ func ConvertComponentIdIntoPath(id string) (string, string) {
}
replaced := strings.ReplaceAll(strings.Join(cleaned, "/"), "$", "#")
if len(replaced) > 0 {
if replaced[0] != '#' {
replaced = fmt.Sprintf("#%s", replaced)
}
}
return name, replaced
}