applying brew tests, typecheck, style

This commit is contained in:
thibhero 2025-05-07 12:29:32 -04:00
parent 499a9b9dae
commit 76e7a13332
3 changed files with 4 additions and 5 deletions

View File

@ -172,9 +172,7 @@ module Homebrew
end end
if casks.any? if casks.any?
if args.ask? Install.ask_casks casks if args.ask?
Install.ask_casks casks
end
Cask::Reinstall.reinstall_casks( Cask::Reinstall.reinstall_casks(
*casks, *casks,
binaries: args.binaries?, binaries: args.binaries?,

View File

@ -260,6 +260,7 @@ module Homebrew
sig { params(casks: T::Array[Cask::Cask]).returns(T::Boolean) } sig { params(casks: T::Array[Cask::Cask]).returns(T::Boolean) }
def upgrade_outdated_casks(casks) def upgrade_outdated_casks(casks)
return false if args.formula? return false if args.formula?
Install.ask_casks casks Install.ask_casks casks
Cask::Upgrade.upgrade_casks( Cask::Upgrade.upgrade_casks(

View File

@ -332,7 +332,7 @@ module Homebrew
# If asking the user is enabled, show dependency and size information. # If asking the user is enabled, show dependency and size information.
def ask_formulae(formulae, args:) def ask_formulae(formulae, args:)
return if formulae.empty? && casks.empty? return if formulae.empty?
ohai "Looking for bottles..." ohai "Looking for bottles..."