mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:54:59 +08:00
Fix migrate_to_s3
rake task, File#close!
is not a valid method.
This commit is contained in:
parent
8e240af3ea
commit
33f4aa2835
|
@ -253,7 +253,7 @@ def migrate_to_s3
|
|||
putc "X"
|
||||
next
|
||||
ensure
|
||||
file.try(:close!) rescue nil
|
||||
file&.close
|
||||
end
|
||||
|
||||
# remap the URL
|
||||
|
|
Loading…
Reference in New Issue
Block a user