Skip to content

Commit

Permalink
Fix logstash-plugins#88 fix not used arguments test failture
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalik-dj committed Apr 19, 2024
1 parent fed5cee commit 4b62b5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/logstash/outputs/bson/big_decimal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ module BigDecimal
# 1.221311.to_bson
# @return [ String ] The encoded string.
# @see http://bsonspec.org/#/specification
def to_bson(buffer = ByteBuffer.new, validating_keys = Config.validating_keys?)
buffer.put_bytes([ self ].pack(PACK))
def to_bson(buffer = ByteBuffer.new, _validating_keys = nil)
buffer.put_bytes([ self ].pack(PACK))
end

module ClassMethods
Expand Down
2 changes: 1 addition & 1 deletion lib/logstash/outputs/bson/logstash_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module LogStashEvent
# Event.new("field" => "value").to_bson
# @return [ String ] The encoded string.
# @see http://bsonspec.org/#/specification
def to_bson(buffer = ByteBuffer.new, validating_keys = Config.validating_keys?)
def to_bson(buffer = ByteBuffer.new, _validating_keys = nil)
position = buffer.length
buffer.put_int32(0)
to_hash.each do |field, value|
Expand Down
2 changes: 1 addition & 1 deletion lib/logstash/outputs/bson/logstash_timestamp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module LogStashTimestamp
# A time is type 0x09 in the BSON spec.
BSON_TYPE = 9.chr.force_encoding(BINARY).freeze

def to_bson(buffer = ByteBuffer.new, validating_keys = Config.validating_keys?)
def to_bson(buffer = ByteBuffer.new, _validating_keys = nil)
time.to_bson(buffer)
end

Expand Down

0 comments on commit 4b62b5f

Please sign in to comment.