From e0179350fe4b662e550874d580fb2608289f4226 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Thu, 6 Jun 2024 11:41:21 -0400 Subject: [PATCH] attestation: rename loop var to please sorbet Signed-off-by: William Woodruff --- Library/Homebrew/attestation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/attestation.rb b/Library/Homebrew/attestation.rb index 94f62e445d..aa8d8f5422 100644 --- a/Library/Homebrew/attestation.rb +++ b/Library/Homebrew/attestation.rb @@ -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|