Use hash for internal cask API

This commit is contained in:
Rylan Polster 2025-08-11 14:14:49 -04:00
parent bcc3a0dbef
commit 5e2b54881c
No known key found for this signature in database

View File

@ -72,14 +72,14 @@ module Homebrew
OnSystem::VALID_OS_ARCH_TAGS.each do |bottle_tag| OnSystem::VALID_OS_ARCH_TAGS.each do |bottle_tag|
renames = {} renames = {}
variation_casks = all_casks.map do |token, cask| variation_casks = all_casks.to_h do |token, cask|
cask = Homebrew::API.merge_variations(cask, bottle_tag:) cask = Homebrew::API.merge_variations(cask, bottle_tag:)
cask["old_tokens"]&.each do |old_token| cask["old_tokens"]&.each do |old_token|
renames[old_token] = token renames[old_token] = token
end end
cask [token, cask]
end end
json_contents = { json_contents = {