Skip to content

Commit

Permalink
Merge pull request #356 from scientist-softserv/defesive-coding
Browse files Browse the repository at this point in the history
🐛 Add lonely operator for defensive coding
  • Loading branch information
ShanaLMoore authored Jun 18, 2024
2 parents 6751159 + 3aa0e5b commit ffea40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iiif_print/base_derivative_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def valid?
# @TODO: verify if this works for ActiveFedora and if so, remove commented code.
# If not, modify to use adapter.
# file_set.class.image_mime_types.include?(file_set.mime_type)
file_set.original_file.image?
file_set.original_file&.image?
end

def derivative_path_factory
Expand Down

0 comments on commit ffea40d

Please sign in to comment.