Skip to content

Commit

Permalink
Merge pull request #15381 from carlocab/fix-sorbet-fetch
Browse files Browse the repository at this point in the history
utils/bottles: fix typechecking error
  • Loading branch information
carlocab authored May 8, 2023
2 parents 8d938ef + 071f606 commit 7d02626
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/extend/os/mac/utils/bottles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class << self
undef tag

def tag(symbol = nil)
return Utils::Bottles::Tag.from_symbol(symbol) if symbol.present?
return Utils::Bottles::Tag.from_symbol(symbol.to_sym) if symbol.present?

Utils::Bottles::Tag.new(system: MacOS.version.to_sym, arch: Hardware::CPU.arch)
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/utils/bottles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Bottles
class << self
# Gets the tag for the running OS.
def tag(symbol = nil)
return Tag.from_symbol(symbol) if symbol.present?
return Tag.from_symbol(symbol.to_sym) if symbol.present?

@tag ||= Tag.new(system: HOMEBREW_SYSTEM.downcase.to_sym,
arch: HOMEBREW_PROCESSOR.downcase.to_sym)
Expand Down

0 comments on commit 7d02626

Please sign in to comment.