aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib
diff options
context:
space:
mode:
authorYoshiyuki Hirano <yhirano@me.com>2017-12-12 02:51:03 +0900
committerYoshiyuki Hirano <yhirano@me.com>2017-12-12 02:57:38 +0900
commit4c590e9d2e23d24666ed68a0cfbce3a2a2d39160 (patch)
tree3c6eb35575823be44ead9695e063c6769d767533 /activestorage/lib
parentcf0fcbe7f6fd52b3455af99b61ef2c40e6a0062e (diff)
downloadrails-4c590e9d2e23d24666ed68a0cfbce3a2a2d39160.tar.gz
rails-4c590e9d2e23d24666ed68a0cfbce3a2a2d39160.tar.bz2
rails-4c590e9d2e23d24666ed68a0cfbce3a2a2d39160.zip
Return `nil` instead of `false` if raise `Azure::Core::Http::HTTPError`
* If it raise error `Azure::Core::Http::HTTPError`, return `nil` instead of `false` in `ActiveStorage::Service::AzureStorageService#delete`. * Other services behave as same as this.
Diffstat (limited to 'activestorage/lib')
-rw-r--r--activestorage/lib/active_storage/service/azure_storage_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/lib/active_storage/service/azure_storage_service.rb b/activestorage/lib/active_storage/service/azure_storage_service.rb
index 19b09991b3..0a9eb7f23d 100644
--- a/activestorage/lib/active_storage/service/azure_storage_service.rb
+++ b/activestorage/lib/active_storage/service/azure_storage_service.rb
@@ -46,7 +46,7 @@ module ActiveStorage
begin
blobs.delete_blob(container, key)
rescue Azure::Core::Http::HTTPError
- false
+ # Ignore files already deleted
end
end
end