From 989af4ed20a22e103df1a0bfbcb262e1e3a06efa Mon Sep 17 00:00:00 2001 From: LaRita Robinson Date: Fri, 8 Nov 2024 11:40:36 -0500 Subject: [PATCH] Fix rubocop complaint --- app/jobs/iiif_print/child_works_from_pdf_job_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/iiif_print/child_works_from_pdf_job_decorator.rb b/app/jobs/iiif_print/child_works_from_pdf_job_decorator.rb index ffbfec0..b86283f 100644 --- a/app/jobs/iiif_print/child_works_from_pdf_job_decorator.rb +++ b/app/jobs/iiif_print/child_works_from_pdf_job_decorator.rb @@ -38,7 +38,7 @@ def perform(id, pdf_paths, user, admin_set_id, *) # However, there seem to be cases where we still don't have the file when we get here, so to be sure, we # re-do the same command that was previously used to prepare the file path. If the file is already here, it # simply returns the path, but if not it will copy the file there, giving us one more chance to have what we need. - redownload = pdf_file_set && pdf_file_set.is_a?(ActiveFedora::Base) + redownload = pdf_file_set&.is_a?(ActiveFedora::Base) pdf_paths = [Hyrax::WorkingDirectory.find_or_retrieve(pdf_file_set.original_file.id, pdf_file_set.id, pdf_paths.first)] if redownload # handle each input pdf (when input is a file set, we will only have one). pdf_paths.each do |original_pdf_path|