From fc2add8c959561c808068fd6282711ce41cb3ec0 Mon Sep 17 00:00:00 2001 From: Pieter Oliver Date: Mon, 30 Jun 2025 11:11:51 +0100 Subject: [PATCH] AutoFix RuboCop Layout/EmptyLinesAroundMethodBody --- .rubocop_todo.yml | 6 ------ lib/grape_logging/loggers/response.rb | 1 - 2 files changed, 7 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 8119b19..cad09dc 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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. diff --git a/lib/grape_logging/loggers/response.rb b/lib/grape_logging/loggers/response.rb index 8b76d12..81c45c6 100644 --- a/lib/grape_logging/loggers/response.rb +++ b/lib/grape_logging/loggers/response.rb @@ -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