Simplify comment in skip-detached override

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Joseph Hale
2026-03-02 14:40:21 -07:00
parent c61f49cce9
commit 7611236a67
@@ -1,9 +1,5 @@
# Skip analysis for blobs whose attachments have already been destroyed.
#
# When an upload is deleted before AnalyzeJob runs, PurgeOnLastAttachment has
# already destroyed the attachment row and enqueued PurgeJob for the blob's S3
# object. Analyzing at this point hits a missing key. Same check as
# PurgeOnLastAttachment#purge_blob_if_last.
# Skip analysis for blobs whose attachments have already been destroyed. Avoids
# Aws::S3::Errors::NoSuchKey when an upload is deleted before AnalyzeJob runs.
module ActiveStorageAnalyzeJobSkipDetached
def perform(blob)
return unless blob.attachments.exists?