Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Add lonely operator for defensive coding #356

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Conversation

ShanaLMoore
Copy link
Contributor

@ShanaLMoore ShanaLMoore commented Jun 18, 2024

Adds lonely operator per Rob's recommendation for defensive coding, even if, ideally, original_file shouldn't be nil.

We originally noticed an error when running iiif print split locally, from Hyku.

NoMethodError (undefined method `image?' for nil:NilClass):
/usr/local/bundle/bundler/gems/iiif_print-675115934432/lib/iiif_print/base_derivative_service.rb:36:in `valid?'

Add lonely operator per Rob's recommendation for defensive coding.
@ShanaLMoore ShanaLMoore merged commit ffea40d into main Jun 18, 2024
9 of 10 checks passed
ShanaLMoore added a commit to samvera/hyku that referenced this pull request Jun 18, 2024
This pulls in a line for defensive coding in lib/iiif_print/base_derivative_service.rb
- scientist-softserv/iiif_print#356
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants