mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-15 07:03:49 -05:00
Fix Style/NilLambda
cop in paperclip initializer (#30695)
This commit is contained in:
parent
222ab80557
commit
980034e2e1
@ -72,7 +72,7 @@ if ENV['S3_ENABLED'] == 'true'
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
Paperclip::Attachment.default_options[:s3_permissions] = ->(*) { nil } if ENV['S3_PERMISSION'] == ''
|
Paperclip::Attachment.default_options[:s3_permissions] = ->(*) {} if ENV['S3_PERMISSION'] == ''
|
||||||
|
|
||||||
if ENV.has_key?('S3_ENDPOINT')
|
if ENV.has_key?('S3_ENDPOINT')
|
||||||
Paperclip::Attachment.default_options[:s3_options].merge!(
|
Paperclip::Attachment.default_options[:s3_options].merge!(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user