aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorShuhei Kitagawa <shuhei.kitagawa@c-fo.com>2017-10-28 17:20:38 +0900
committerShuhei Kitagawa <shuhei.kitagawa@c-fo.com>2017-10-28 17:20:38 +0900
commitc40b4428e6d3885a8adc0ceba3aeac7599c14879 (patch)
tree3e947346605a4032d95fc28b6b38da7c624c2e81 /actionpack
parentbf6456e05395583809f4565844a8dc088431fce7 (diff)
downloadrails-c40b4428e6d3885a8adc0ceba3aeac7599c14879.tar.gz
rails-c40b4428e6d3885a8adc0ceba3aeac7599c14879.tar.bz2
rails-c40b4428e6d3885a8adc0ceba3aeac7599c14879.zip
removed unnecessary returns
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/journey/router.rb2
-rw-r--r--actionpack/test/controller/caching_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/journey/router.rb b/actionpack/lib/action_dispatch/journey/router.rb
index b8fdde5475..30af3ff930 100644
--- a/actionpack/lib/action_dispatch/journey/router.rb
+++ b/actionpack/lib/action_dispatch/journey/router.rb
@@ -61,7 +61,7 @@ module ActionDispatch
return [status, headers, body]
end
- return [404, { "X-Cascade" => "pass" }, ["Not Found"]]
+ [404, { "X-Cascade" => "pass" }, ["Not Found"]]
end
def recognize(rails_req)
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb
index e0300539c9..969e0edfc2 100644
--- a/actionpack/test/controller/caching_test.rb
+++ b/actionpack/test/controller/caching_test.rb
@@ -317,7 +317,7 @@ end
class CacheHelperOutputBufferTest < ActionController::TestCase
class MockController
def read_fragment(name, options)
- return false
+ false
end
def write_fragment(name, fragment, options)