diff options
author | Bart de Water <bartdewater@gmail.com> | 2018-04-21 13:23:42 -0400 |
---|---|---|
committer | Bart de Water <bartdewater@gmail.com> | 2018-04-21 13:23:42 -0400 |
commit | 999e7ec505d8088b3bd82298750c0f1d0043cede (patch) | |
tree | 213218f204d8bdd38882e96ee6e1f1955388522b /actionpack/lib/action_dispatch | |
parent | e236454a1a7812898b60585e77cb7feae85a4ea4 (diff) | |
download | rails-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.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 2 |
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 |