Skip to content

Commit

Permalink
build: resolves Lint/Void rubocop warning
Browse files Browse the repository at this point in the history
>`Lint/Void: Literal "\n#{payload.to_json}\n" used in void context.`
  • Loading branch information
jonrandahl committed Dec 9, 2024
1 parent f86f956 commit 930be41
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/json_rails_logger/json_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ def call(severity, timestamp, _progname, raw_msg) # rubocop:disable Metrics/AbcS
payload.merge!(request_id.to_h)
payload.merge!(new_msg.to_h.except!(:optional).compact)

"\n#{payload.to_json}\n" if Rails.env.development?

"#{payload.to_json}\n"
end
# rubocop:enable Metrics/MethodLength
Expand Down

0 comments on commit 930be41

Please sign in to comment.