Skip to content

Commit

Permalink
🐛 Favor FileUtils.rm_f
Browse files Browse the repository at this point in the history
`File` does not respond to `.rm_f`; we instead want to use
`FileUtils.rm_f`.

Co-authored-by: Kirk Wang <[email protected]>
  • Loading branch information
jeremyf and kirkkwang committed Dec 7, 2023
1 parent 374eed3 commit 9c3713c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iiif_print/jobs/child_works_from_pdf_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def prepare_import_data(original_pdf_path, image_files, user)

begin
# Clean up the temporary image path.
File.rm_f(image_path) if File.exist?(image_path)
FileUtils.rm_f(image_path) if File.exist?(image_path)
rescue
# If we can't delete, let's move on. Maybe it was already cleaned-up.
end
Expand Down

0 comments on commit 9c3713c

Please sign in to comment.