Skip to content

Commit 4594793

Browse files
wtnioquatix
authored andcommitted
Remove parentheses from #<< method definitions.
1 parent 7583e5f commit 4594793

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/protocol/http/body/stream.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def write_nonblock(buffer, exception: nil)
315315
end
316316

317317
# Write data to the stream using {write}.
318-
def <<(buffer)
318+
def << buffer
319319
write(buffer)
320320
end
321321

lib/protocol/http/header/accept.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def initialize(value = nil)
8181
# The input string is split into distinct entries and appended to the array.
8282
#
8383
# @parameter value [String] the value or values to add, separated by commas.
84-
def << (value)
84+
def << value
8585
self.concat(value.scan(SEPARATOR).map(&:strip))
8686
end
8787

0 commit comments

Comments
 (0)