diff options
author | Shuhei Kitagawa <shuhei.kitagawa@c-fo.com> | 2017-10-28 17:20:38 +0900 |
---|---|---|
committer | Shuhei Kitagawa <shuhei.kitagawa@c-fo.com> | 2017-10-28 17:20:38 +0900 |
commit | c40b4428e6d3885a8adc0ceba3aeac7599c14879 (patch) | |
tree | 3e947346605a4032d95fc28b6b38da7c624c2e81 /actionpack | |
parent | bf6456e05395583809f4565844a8dc088431fce7 (diff) | |
download | rails-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.rb | 2 | ||||
-rw-r--r-- | actionpack/test/controller/caching_test.rb | 2 |
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) |