mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
fix rubocop
This commit is contained in:
1 parent
90fef58684
commit
29d3a80d3f
1 file changed
+4
-2
@@ -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?
|
||||
|
||||
Reference in new issue
Block a user