aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-17 23:22:59 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-17 23:22:59 -0300
commit88a1800526855edfc42209d4960b48550212fd8f (patch)
tree9305aa14a1fca6324286cab6d7808a8c8adcddc4
parent352da06503e96a2aa6ef40342060deb1f07ed683 (diff)
downloadrails-88a1800526855edfc42209d4960b48550212fd8f.tar.gz
rails-88a1800526855edfc42209d4960b48550212fd8f.tar.bz2
rails-88a1800526855edfc42209d4960b48550212fd8f.zip
Remove unreached default value
verb_matcher never returns nil.
-rw-r--r--actionpack/lib/action_dispatch/journey/route.rb2
1 files changed, 1 insertions, 1 deletions
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