Skip to content

Commit

Permalink
Fix Rubocop offences
Browse files Browse the repository at this point in the history
  • Loading branch information
y-yagi committed Jan 12, 2024
1 parent 92ea3bd commit c3d4213
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/lograge/formatters/graylog2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def call(data)
end

def underscore_prefix(key)
"_#{key}".to_sym
:"_#{key}"
end

def short_message(data)
Expand Down
2 changes: 1 addition & 1 deletion lib/lograge/formatters/key_value_deep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Lograge
module Formatters
class KeyValueDeep < KeyValue
def call(data)
super flatten_keys(data)
super(flatten_keys(data))
end

protected
Expand Down
2 changes: 1 addition & 1 deletion lib/lograge/log_subscribers/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_error_status_code(exception_class_name)
end

def extract_allocations(event)
if (allocations = (event.respond_to?(:allocations) && event.allocations))
if (allocations = event.respond_to?(:allocations) && event.allocations)
{ allocations: allocations }
else
{}
Expand Down

0 comments on commit c3d4213

Please sign in to comment.