mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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.
This commit is contained in:
parent
378dd7a4a8
commit
28aca474d4
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue