Skip to content

Commit

Permalink
Missed a few single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
nd4p90x committed May 28, 2024
1 parent bdf9d9d commit ee68d65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/segment/analytics/message_batch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def <<(message)
message_json_size = message_json.bytesize
if message_too_big?(message_json_size)
logger.error('a message exceeded the maximum allowed size')
raise JSONGenerationError, "Message Exceeded Maximum Allowed Size"
raise JSONGenerationError, 'Message Exceeded Maximum Allowed Size'

Check warning on line 32 in lib/segment/analytics/message_batch.rb

View check run for this annotation

Codecov / codecov/patch

lib/segment/analytics/message_batch.rb#L32

Added line #L32 was not covered by tests
else
@messages << message
@json_size += message_json_size + 1 # One byte for the comma
Expand Down
2 changes: 1 addition & 1 deletion spec/segment/analytics/message_batch_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Analytics
end

it 'returns true once max size is almost exceeded' do
message = { a: "b" * (Defaults::Message::MAX_BYTES - 10) }
message = { a: 'b' * (Defaults::Message::MAX_BYTES - 10) }

message_size = message.to_json.bytesize

Expand Down

0 comments on commit ee68d65

Please sign in to comment.