aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_storage
diff options
context:
space:
mode:
Diffstat (limited to 'lib/active_storage')
-rw-r--r--lib/active_storage/service/gcs_service.rb2
-rw-r--r--lib/active_storage/service/mirror_service.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/active_storage/service/gcs_service.rb b/lib/active_storage/service/gcs_service.rb
index 9ac33d68f3..e09fa484ff 100644
--- a/lib/active_storage/service/gcs_service.rb
+++ b/lib/active_storage/service/gcs_service.rb
@@ -23,7 +23,7 @@ class ActiveStorage::Service::GCSService < ActiveStorage::Service
end
def delete(key)
- file_for(key).try(:delete)
+ file_for(key)&.delete
end
def exist?(key)
diff --git a/lib/active_storage/service/mirror_service.rb b/lib/active_storage/service/mirror_service.rb
index 59ad3fc472..1ec0930e6c 100644
--- a/lib/active_storage/service/mirror_service.rb
+++ b/lib/active_storage/service/mirror_service.rb
@@ -3,7 +3,7 @@ require "active_support/core_ext/module/delegation"
class ActiveStorage::Service::MirrorService < ActiveStorage::Service
attr_reader :services
- delegate :download, :exist?, :url, :byte_size, :checksum, to: :primary_service
+ delegate :download, :exist?, :url, to: :primary_service
def initialize(services:)
@services = services