1
0
Fork 0
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:
Ryuta Kamizono 2019-05-08 19:34:31 +09:00
parent 378dd7a4a8
commit 28aca474d4

View file

@ -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