diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-05-08 19:34:31 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-05-08 19:34:31 +0900 |
commit | 28aca474d48b6acdbe8c7861d9347e27c65fafd9 (patch) | |
tree | 71ceeff57b03ae5d42ddcc6c84a2e424d47c8e79 /actionpack/lib | |
parent | 378dd7a4a8f00aee7c2a00c66e66c2cf12a402fe (diff) | |
download | rails-28aca474d48b6acdbe8c7861d9347e27c65fafd9.tar.gz rails-28aca474d48b6acdbe8c7861d9347e27c65fafd9.tar.bz2 rails-28aca474d48b6acdbe8c7861d9347e27c65fafd9.zip |
Auto-correct `Style/RedundantBegin` offence
This offenced code is introduced from forward ported #36196, since looks
like 6-0-stable branch isn't checked by CodeClimate.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/debug_view.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/debug_view.rb b/actionpack/lib/action_dispatch/middleware/debug_view.rb index 0e8af80996..148662a48b 100644 --- a/actionpack/lib/action_dispatch/middleware/debug_view.rb +++ b/actionpack/lib/action_dispatch/middleware/debug_view.rb @@ -58,11 +58,9 @@ module ActionDispatch end def params_valid? - begin - @request.parameters - rescue ActionController::BadRequest - false - end + @request.parameters + rescue ActionController::BadRequest + false end end end |