Skip to content

Commit

Permalink
Fix rubocop complaint (#873)
Browse files Browse the repository at this point in the history
# Story

Fixes code changed rapidly for production deploy errors.

# Expected Behavior Before Changes

# Expected Behavior After Changes

# Screenshots / Video

<details>
<summary></summary>

</details>

# Notes
  • Loading branch information
laritakr authored Nov 8, 2024
2 parents 1bc0b21 + 989af4e commit 440da4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/iiif_print/child_works_from_pdf_job_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 440da4e

Please sign in to comment.