Skip to content

Commit

Permalink
Merge pull request #1118 from chaadow/patch-1
Browse files Browse the repository at this point in the history
Fix for frozen string literal to prepare for ruby 3.4
  • Loading branch information
unixmonkey authored Oct 11, 2024
2 parents c06ec23 + 9ed3d41 commit ae3776f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/wicked_pdf/tempfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def write_in_chunks(input_string)
def read_in_chunks
rewind
binmode
output_string = ''
output_string << read(chunk_size) until eof?
output_string
chunks = []
chunks << read(chunk_size) until eof?
chunks.join
rescue Errno::EINVAL => e
raise e, file_too_large_message
end
Expand Down

0 comments on commit ae3776f

Please sign in to comment.