Skip to content

Commit 67e3d5d

Browse files
committed
fix: used string equality
1 parent 0ee4d2f commit 67e3d5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/resty/radixtree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ local mt = { __index = _M, __gc = gc_free }
205205

206206
local function sort_route(route_a, route_b)
207207
if route_a.priority == route_b.priority then
208-
if #route_a.path_org == #route_b.path_org then
208+
if route_a.path_org == route_b.path_org then
209209
return (route_a.vars_len or 0) > (route_b.vars_len or 0)
210210
end
211211
return #route_a.path_org > #route_b.path_org

0 commit comments

Comments
 (0)