mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 04:20:11 +00:00
removed dead code
This commit is contained in:
@@ -751,14 +751,10 @@ func ConvertComponentIdIntoFriendlyPathSearch(id string) (string, string) {
|
|||||||
if intVal <= 99 {
|
if intVal <= 99 {
|
||||||
if len(cleaned) > 0 {
|
if len(cleaned) > 0 {
|
||||||
appendSegment(&sb, segs, cleaned, i, false)
|
appendSegment(&sb, segs, cleaned, i, false)
|
||||||
} else {
|
|
||||||
cleaned = append(cleaned, segs[i])
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if len(cleaned) > 0 {
|
if len(cleaned) > 0 {
|
||||||
appendSegment(&sb, segs, cleaned, i, true)
|
appendSegment(&sb, segs, cleaned, i, true)
|
||||||
} else {
|
|
||||||
cleaned = append(cleaned, segs[i])
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user