diff options
Diffstat (limited to 'lib/active_storage/service')
-rw-r--r-- | lib/active_storage/service/gcs_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_storage/service/gcs_service.rb b/lib/active_storage/service/gcs_service.rb index bff2f9366e..73629f7486 100644 --- a/lib/active_storage/service/gcs_service.rb +++ b/lib/active_storage/service/gcs_service.rb @@ -32,7 +32,7 @@ class ActiveStorage::Service::GCSService < ActiveStorage::Service def delete(key) instrument :delete, key do - file_for(key)&.delete + file_for(key).try(:delete) end end |