A platform for community discussion. Free, open, simple.
DEV: Remove FileStore#download deprecation warning (#28971)
Ted Johanssone68748318e1d
diff --git a/lib/file_store/base_store.rb b/lib/file_store/base_store.rbindex ff98b06231a..99e95422cb5 100644--- a/lib/file_store/base_store.rb+++ b/lib/file_store/base_store.rb@@ -105,12 +105,6 @@ module FileStoreenddef download(object, max_file_size_kb: nil, print_deprecation: true)- Discourse.deprecate(<<~MESSAGE) if print_deprecation- In a future version `FileStore#download` will no longer raise an error when the- download fails, and will instead return `nil`. If you need a method that raises- an error, use `FileStore#download!`, which raises a `FileStore::DownloadError`.- MESSAGE-DistributedMutex.synchronize("download_#{object.sha1}", validity: 3.minutes) doextension =File.extname(