1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove unnecessary variable route

The variable `route` was only allocated to hold an object that was
immediately returned. This patch removes that variable.
This commit is contained in:
Alberto Almagro 2018-12-02 18:10:03 +01:00
parent aa1ba9cb24
commit c93bad2070

View file

@ -160,17 +160,8 @@ module ActionDispatch
end end
def make_route(name, precedence) def make_route(name, precedence)
route = Journey::Route.new(name, Journey::Route.new(name, application, path, conditions, required_defaults,
application, defaults, request_method, precedence, @internal)
path,
conditions,
required_defaults,
defaults,
request_method,
precedence,
@internal)
route
end end
def application def application