Skip to content

Commit ccf79af

Browse files
authored
fix: Explicitly mark buffer variable as unfrozen (#59)
In a future version of Ruby, literal strings will be frozen by default. To avoid this causing an issue (and raising deprecation warnings now), we are explicitly marking this literal string as unfrozen.
1 parent 93a9947 commit ccf79af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/ld-eventsource/impl/buffered_line_reader.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
module SSE
32
module Impl
43
class BufferedLineReader
@@ -16,7 +15,7 @@ class BufferedLineReader
1615
# @return [Enumerator] an enumerator that will yield one line at a time in UTF-8
1716
#
1817
def self.lines_from(chunks)
19-
buffer = "".b
18+
buffer = +"".b
2019
position = 0
2120
line_start = 0
2221
last_char_was_cr = false

0 commit comments

Comments
 (0)