Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylareopelle committed Jun 14, 2023
1 parent b9d4101 commit 957dc60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/new_relic/agent/log_event_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def initialize(attribute, limit, msg = "Can't truncate")
class InvalidTypeError < StandardError
attr_reader :attribute

def initialize(attribute, msg = "Invalid attribute type")
def initialize(attribute, msg = 'Invalid attribute type')
@attribute = attribute
super(msg)
end
Expand Down Expand Up @@ -88,6 +88,7 @@ def truncate_attribute(attribute, limit)
attribute = attribute.slice(0..(limit - 1))
end
when TrueClass, FalseClass
attribute
else
raise InvalidTypeError.new(attribute)
end
Expand Down

0 comments on commit 957dc60

Please sign in to comment.