mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-03-25 08:55:47 +00:00
AutoFix RuboCop Layout/EmptyLinesAroundMethodBody
This commit is contained in:
parent
223c84cd2c
commit
fc2add8c95
2 changed files with 0 additions and 7 deletions
|
|
@ -47,12 +47,6 @@ Layout/EmptyLinesAroundClassBody:
|
|||
- 'lib/grape_logging/loggers/request_headers.rb'
|
||||
- 'lib/grape_logging/middleware/request_logger.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Layout/EmptyLinesAroundMethodBody:
|
||||
Exclude:
|
||||
- 'lib/grape_logging/loggers/response.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ module GrapeLogging
|
|||
# For example, if you POST on a PUT endpoint, response.body is egal to """".
|
||||
# It's strange, but it's the Grape behavior...
|
||||
def serialized_response_body(response)
|
||||
|
||||
if response.respond_to?(:body)
|
||||
# Rack responses
|
||||
begin
|
||||
|
|
|
|||
Loading…
Reference in a new issue