Formatted
This commit is contained in:
parent
b431f4128b
commit
5749a7db60
|
@ -14,7 +14,7 @@ class Kemal::Route
|
||||||
@components.zip(components) do |route_component, req_component|
|
@components.zip(components) do |route_component, req_component|
|
||||||
if route_component.starts_with? ':'
|
if route_component.starts_with? ':'
|
||||||
params ||= {} of String => String
|
params ||= {} of String => String
|
||||||
params[route_component[1 .. -1]] = req_component
|
params[route_component[1..-1]] = req_component
|
||||||
else
|
else
|
||||||
return nil unless route_component == req_component
|
return nil unless route_component == req_component
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue