Removed redundant variable

This commit is contained in:
Sdogruyol 2015-10-24 19:09:56 +03:00
parent 2c9d967890
commit cd6f54b714

View file

@ -17,8 +17,7 @@ class Kemal::Handler < HTTP::Handler
@routes << Route.new(method, path, &handler)
end
def exec_request(request)
uri = request.resource
def exec_request(request)
components = request.path.not_nil!.split "/"
@routes.each do |route|
params = route.match(request.method, components)