mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-03-25 08:55:47 +00:00
AutoFix RuboCop Style/RescueStandardError
This commit is contained in:
parent
5eea5ab218
commit
5e78a32bfe
2 changed files with 1 additions and 9 deletions
|
|
@ -236,14 +236,6 @@ Style/RedundantPercentQ:
|
|||
Exclude:
|
||||
- 'grape_logging.gemspec'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: implicit, explicit
|
||||
Style/RescueStandardError:
|
||||
Exclude:
|
||||
- 'lib/grape_logging/loggers/response.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ module GrapeLogging
|
|||
# Rack responses
|
||||
begin
|
||||
response.body.map { |body| JSON.parse(body.to_s) }
|
||||
rescue # No reason to have "=> e" here when we don't use it..
|
||||
rescue StandardError # No reason to have "=> e" here when we don't use it..
|
||||
response.body
|
||||
end
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue