Merge pull request #15382 from carlocab/better-sorbet-fix
fetch: better typechecking fix
This commit is contained in:
commit
8cb03851a4
@ -7,7 +7,7 @@ module Utils
|
||||
undef tag
|
||||
|
||||
def tag(symbol = nil)
|
||||
return Utils::Bottles::Tag.from_symbol(symbol.to_sym) if symbol.present?
|
||||
return Utils::Bottles::Tag.from_symbol(symbol) if symbol.present?
|
||||
|
||||
Utils::Bottles::Tag.new(system: MacOS.version.to_sym, arch: Hardware::CPU.arch)
|
||||
end
|
||||
|
||||
@ -9,7 +9,7 @@ module Homebrew
|
||||
bottle = formula.bottle
|
||||
|
||||
return true if args.force_bottle? && bottle.present?
|
||||
return true if args.bottle_tag.present? && formula.bottled?(args.bottle_tag)
|
||||
return true if args.bottle_tag.present? && formula.bottled?(args.bottle_tag&.to_sym)
|
||||
|
||||
bottle.present? &&
|
||||
formula.pour_bottle? &&
|
||||
|
||||
@ -11,7 +11,7 @@ module Utils
|
||||
class << self
|
||||
# Gets the tag for the running OS.
|
||||
def tag(symbol = nil)
|
||||
return Tag.from_symbol(symbol.to_sym) if symbol.present?
|
||||
return Tag.from_symbol(symbol) if symbol.present?
|
||||
|
||||
@tag ||= Tag.new(system: HOMEBREW_SYSTEM.downcase.to_sym,
|
||||
arch: HOMEBREW_PROCESSOR.downcase.to_sym)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user