attestation: rename loop var to please sorbet

Signed-off-by: William Woodruff <william@yossarian.net>
This commit is contained in:
William Woodruff 2024-06-06 11:41:21 -04:00
parent b92de887ee
commit e0179350fe
No known key found for this signature in database

View File

@ -112,8 +112,8 @@ module Homebrew
# This is sound insofar as the signature has already been verified. However,
# longer term, we should also directly attest to `:all`-tagged bottles.
attestations.find do |a|
subject = a.dig("verificationResult", "statement", "subject", 0, "name")
subject.start_with? "#{bottle.filename.name}--#{bottle.filename.version}"
actual_subject = a.dig("verificationResult", "statement", "subject", 0, "name")
actual_subject.start_with? "#{bottle.filename.name}--#{bottle.filename.version}"
end
else
attestations.find do |a|