Skip to content

Commit

Permalink
Fix for frozen string literal to prepare for ruby 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
chaadow committed May 29, 2024
1 parent 26bc414 commit 9ed3d41
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 9ed3d41

Please sign in to comment.