mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-03-25 08:55:47 +00:00
AutoFix RuboCop Style/ZeroLengthPredicate
This commit is contained in:
parent
b4daa9b92e
commit
86f2485b2d
2 changed files with 1 additions and 6 deletions
|
|
@ -457,11 +457,6 @@ Style/TrailingCommaInHashLiteral:
|
|||
- 'spec/lib/grape_logging/loggers/filter_parameters_spec.rb'
|
||||
- 'spec/lib/grape_logging/loggers/response_spec.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
Style/ZeroLengthPredicate:
|
||||
Exclude:
|
||||
- 'lib/grape_logging/formatters/rails.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ module GrapeLogging
|
|||
message << " Parameters: #{params.inspect}\n" if params
|
||||
|
||||
message << "Completed #{status} #{::Rack::Utils::HTTP_STATUS_CODES[status]} in #{total_time}ms"
|
||||
message << " (#{additions.join(" | ".freeze)})" if additions.size > 0
|
||||
message << " (#{additions.join(" | ".freeze)})" unless additions.empty?
|
||||
message << "\n"
|
||||
message << "\n" if defined?(::Rails.env) && ::Rails.env.development?
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue