From 071f6069d2cff272eaa9404f836cb1254c4fb588 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Mon, 8 May 2023 21:07:03 +0800 Subject: [PATCH] utils/bottles: fix typechecking error https://github.com/Homebrew/homebrew-core/actions/runs/4915420737/jobs/8777887066?pr=130438#step:5:27 --- Library/Homebrew/extend/os/mac/utils/bottles.rb | 2 +- Library/Homebrew/utils/bottles.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/extend/os/mac/utils/bottles.rb b/Library/Homebrew/extend/os/mac/utils/bottles.rb index 7d601f14f46d5..149706438820b 100644 --- a/Library/Homebrew/extend/os/mac/utils/bottles.rb +++ b/Library/Homebrew/extend/os/mac/utils/bottles.rb @@ -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 diff --git a/Library/Homebrew/utils/bottles.rb b/Library/Homebrew/utils/bottles.rb index 1ef0334ceac29..761f84dd079d3 100644 --- a/Library/Homebrew/utils/bottles.rb +++ b/Library/Homebrew/utils/bottles.rb @@ -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)