2
0

Fix Lint/UnusedBlockArgument cop (#27777)

This commit is contained in:
Matt Jankowski
2023-11-09 04:43:26 -05:00
committed by GitHub
parent 5af47fbff8
commit c875dfc90b
5 changed files with 6 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ Paperclip.interpolates :filename do |attachment, style|
end
end
Paperclip.interpolates :prefix_path do |attachment, style|
Paperclip.interpolates :prefix_path do |attachment, _style|
if attachment.storage_schema_version >= 1 && attachment.instance.respond_to?(:local?) && !attachment.instance.local?
'cache' + File::SEPARATOR
else
@@ -19,7 +19,7 @@ Paperclip.interpolates :prefix_path do |attachment, style|
end
end
Paperclip.interpolates :prefix_url do |attachment, style|
Paperclip.interpolates :prefix_url do |attachment, _style|
if attachment.storage_schema_version >= 1 && attachment.instance.respond_to?(:local?) && !attachment.instance.local?
'cache/'
else