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:
parent
aa1ba9cb24
commit
c93bad2070
1 changed files with 2 additions and 11 deletions
|
@ -160,17 +160,8 @@ module ActionDispatch
|
|||
end
|
||||
|
||||
def make_route(name, precedence)
|
||||
route = Journey::Route.new(name,
|
||||
application,
|
||||
path,
|
||||
conditions,
|
||||
required_defaults,
|
||||
defaults,
|
||||
request_method,
|
||||
precedence,
|
||||
@internal)
|
||||
|
||||
route
|
||||
Journey::Route.new(name, application, path, conditions, required_defaults,
|
||||
defaults, request_method, precedence, @internal)
|
||||
end
|
||||
|
||||
def application
|
||||
|
|
Loading…
Reference in a new issue