Removed redundant variable

This commit is contained in:
Sdogruyol 2015-10-24 19:09:56 +03:00
parent 2c9d967890
commit cd6f54b714
1 changed files with 1 additions and 2 deletions

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)