From 29d3a80d3f61492ed1013ec8dbfa33631caeaad7 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Thu, 21 May 2026 21:55:30 +0300 Subject: [PATCH] fix rubocop --- lib/submissions/generate_result_attachments.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/submissions/generate_result_attachments.rb b/lib/submissions/generate_result_attachments.rb index 03cfeba0..6ca87886 100644 --- a/lib/submissions/generate_result_attachments.rb +++ b/lib/submissions/generate_result_attachments.rb @@ -312,7 +312,8 @@ module Submissions begin attachments_data_cache[attachment.uuid] ||= attachment.download - ImageUtils.load_vips(attachments_data_cache[attachment.uuid], content_type: attachment.content_type).autorot + ImageUtils.load_vips(attachments_data_cache[attachment.uuid], + content_type: attachment.content_type).autorot rescue Vips::Error next unless attachment.content_type.starts_with?('image/') next if attachment.byte_size.zero? @@ -452,7 +453,8 @@ module Submissions begin attachments_data_cache[attachment.uuid] ||= attachment.download - ImageUtils.load_vips(attachments_data_cache[attachment.uuid], content_type: attachment.content_type).autorot + ImageUtils.load_vips(attachments_data_cache[attachment.uuid], + content_type: attachment.content_type).autorot rescue Vips::Error next unless attachment.content_type.starts_with?('image/') next if attachment.byte_size.zero?