From 88a1800526855edfc42209d4960b48550212fd8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 17 Aug 2015 23:22:59 -0300 Subject: Remove unreached default value verb_matcher never returns nil. --- actionpack/lib/action_dispatch/journey/route.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_dispatch/journey/route.rb b/actionpack/lib/action_dispatch/journey/route.rb index 5d5fe4698d..209cd20d80 100644 --- a/actionpack/lib/action_dispatch/journey/route.rb +++ b/actionpack/lib/action_dispatch/journey/route.rb @@ -50,7 +50,7 @@ module ActionDispatch end def self.build(name, app, path, constraints, required_defaults, defaults) - request_method_match = verb_matcher(constraints.delete(:request_method)) || [] + request_method_match = verb_matcher(constraints.delete(:request_method)) new name, app, path, constraints, required_defaults, defaults, request_method_match end -- cgit v1.2.3