Skip to content

Commit 68ef29f

Browse files
authored
Merge pull request #20045 from Homebrew/fix-sharded-api
Fix sharded API structure to match existing API
2 parents e825cee + fa45209 commit 68ef29f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Library/Homebrew/dev-cmd/generate-cask-api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def run
7171
File.write("_data/cask_canonical.json", "#{canonical_json}\n") unless args.dry_run?
7272

7373
OnSystem::VALID_OS_ARCH_TAGS.each do |bottle_tag|
74-
variation_casks = all_casks.transform_values do |cask|
74+
variation_casks = all_casks.map do |_, cask|
7575
Homebrew::API.merge_variations(cask, bottle_tag:)
7676
end
7777

Library/Homebrew/dev-cmd/generate-formula-api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def run
6969
File.write("_data/formula_canonical.json", "#{canonical_json}\n") unless args.dry_run?
7070

7171
OnSystem::VALID_OS_ARCH_TAGS.each do |bottle_tag|
72-
variation_formulae = all_formulae.transform_values do |formula|
72+
variation_formulae = all_formulae.map do |_, formula|
7373
Homebrew::API.merge_variations(formula, bottle_tag:)
7474
end
7575

0 commit comments

Comments
 (0)