From 65ecce8ec085b8ccadda651da16870272cdc5676 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Sun, 5 Jan 2025 01:11:47 +0100 Subject: [PATCH] chore: Fix rubocop styling issues --- app/models/concerns/alchemy/picture_thumbnails.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/models/concerns/alchemy/picture_thumbnails.rb b/app/models/concerns/alchemy/picture_thumbnails.rb index ef3a234e81..aa4e907233 100644 --- a/app/models/concerns/alchemy/picture_thumbnails.rb +++ b/app/models/concerns/alchemy/picture_thumbnails.rb @@ -102,11 +102,10 @@ def image_cropper_settings # Show image cropping link for ingredient def allow_image_cropping? - settings[:crop] && picture && - picture.can_be_cropped_to?( - settings[:size], - settings[:upsample] - ) && !!picture.image_file + settings[:crop] && picture&.can_be_cropped_to?( + settings[:size], + settings[:upsample] + ) && !!picture.image_file end private