diff --git a/Library/Homebrew/livecheck/livecheck.rb b/Library/Homebrew/livecheck/livecheck.rb index a23717d3fce8a..a5471a3b984d2 100644 --- a/Library/Homebrew/livecheck/livecheck.rb +++ b/Library/Homebrew/livecheck/livecheck.rb @@ -322,9 +322,9 @@ def run_checks( verbose: verbose) if check_for_resources unless verbose - resource_version_info.map! do |r| - r.delete(:meta) - r + resource_version_info.map! do |info| + info.delete(:meta) + info end end latest_info[:resources] = resource_version_info @@ -375,9 +375,9 @@ def run_checks( progress&.increment info.delete(:meta) unless verbose if check_for_resources && !verbose - resource_version_info.map! do |r| - r.delete(:meta) - r + resource_version_info.map! do |info| + info.delete(:meta) + info end end next info