Skip to content

Commit ae3776f

Browse files
authored
Merge pull request #1118 from chaadow/patch-1
Fix for frozen string literal to prepare for ruby 3.4
2 parents c06ec23 + 9ed3d41 commit ae3776f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/wicked_pdf/tempfile.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ def write_in_chunks(input_string)
2323
def read_in_chunks
2424
rewind
2525
binmode
26-
output_string = ''
27-
output_string << read(chunk_size) until eof?
28-
output_string
26+
chunks = []
27+
chunks << read(chunk_size) until eof?
28+
chunks.join
2929
rescue Errno::EINVAL => e
3030
raise e, file_too_large_message
3131
end

0 commit comments

Comments
 (0)