mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 12:37:49 +00:00
Added coverage, removed dead code from path utils
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user