utils/bottles: fix typechecking error
https://github.com/Homebrew/homebrew-core/actions/runs/4915420737/jobs/8777887066?pr=130438#step:5:27
This commit is contained in:
parent
1120812378
commit
071f6069d2
@ -7,7 +7,7 @@ module Utils
|
|||||||
undef tag
|
undef tag
|
||||||
|
|
||||||
def tag(symbol = nil)
|
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)
|
Utils::Bottles::Tag.new(system: MacOS.version.to_sym, arch: Hardware::CPU.arch)
|
||||||
end
|
end
|
||||||
|
@ -11,7 +11,7 @@ module Utils
|
|||||||
class << self
|
class << self
|
||||||
# Gets the tag for the running OS.
|
# Gets the tag for the running OS.
|
||||||
def tag(symbol = nil)
|
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,
|
@tag ||= Tag.new(system: HOMEBREW_SYSTEM.downcase.to_sym,
|
||||||
arch: HOMEBREW_PROCESSOR.downcase.to_sym)
|
arch: HOMEBREW_PROCESSOR.downcase.to_sym)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user