formatting correctly with brew style

This commit is contained in:
thibhero 2025-05-03 15:39:43 -04:00
parent fd97539b9e
commit 5013c17474
2 changed files with 2 additions and 3 deletions

View File

@ -218,9 +218,7 @@ module Homebrew
end
if casks.any?
if args.options_only.include? "--ask"
opoo "Option --ask is not compatible with casks."
end
opoo "Option --ask is not compatible with casks." if args.options_only.include? "--ask"
if args.dry_run?
if (casks_to_install = casks.reject(&:installed?).presence)
ohai "Would install #{::Utils.pluralize("cask", casks_to_install.count, include_count: true)}:"

View File

@ -333,6 +333,7 @@ module Homebrew
# If asking the user is enabled, show dependency and size information.
def ask(formulae, args:)
return if formulae.empty?
ohai "Looking for bottles..."
sized_formulae = compute_sized_formulae(formulae, args: args)