aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorBart de Water <bartdewater@gmail.com>2018-04-21 13:23:42 -0400
committerBart de Water <bartdewater@gmail.com>2018-04-21 13:23:42 -0400
commit999e7ec505d8088b3bd82298750c0f1d0043cede (patch)
tree213218f204d8bdd38882e96ee6e1f1955388522b /actionpack/lib/action_dispatch
parente236454a1a7812898b60585e77cb7feae85a4ea4 (diff)
downloadrails-999e7ec505d8088b3bd82298750c0f1d0043cede.tar.gz
rails-999e7ec505d8088b3bd82298750c0f1d0043cede.tar.bz2
rails-999e7ec505d8088b3bd82298750c0f1d0043cede.zip
Fix Style/RedundantReturn offenses
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/middleware/static.rb2
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/static.rb b/actionpack/lib/action_dispatch/middleware/static.rb
index acd999444a..8130bfe2e7 100644
--- a/actionpack/lib/action_dispatch/middleware/static.rb
+++ b/actionpack/lib/action_dispatch/middleware/static.rb
@@ -69,7 +69,7 @@ module ActionDispatch
headers["Vary"] = "Accept-Encoding" if gzip_path
- return [status, headers, body]
+ [status, headers, body]
ensure
request.path_info = path
end
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index a29a5a04ef..1134279a7f 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -35,7 +35,7 @@ module ActionDispatch
if @raise_on_name_error
raise
else
- return [404, { "X-Cascade" => "pass" }, []]
+ [404, { "X-Cascade" => "pass" }, []]
end
end