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
if casks.any?
if args.ask?
Install.ask_casks casks
end
Install.ask_casks casks if args.ask?
Cask::Reinstall.reinstall_casks(
*casks,
binaries: args.binaries?,

View File

@ -43,7 +43,7 @@ module Homebrew
description: "Ask for confirmation before downloading and upgrading formulae. " \
"Print bottles and dependencies download size, install and net install size.",
env: :ask
[
[
[:switch, "--formula", "--formulae", {
description: "Treat all named arguments as formulae. If no named arguments " \
"are specified, upgrade only outdated formulae.",
@ -260,6 +260,7 @@ module Homebrew
sig { params(casks: T::Array[Cask::Cask]).returns(T::Boolean) }
def upgrade_outdated_casks(casks)
return false if args.formula?
Install.ask_casks casks
Cask::Upgrade.upgrade_casks(

View File

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