diff --git a/Library/Homebrew/livecheck/livecheck.rb b/Library/Homebrew/livecheck/livecheck.rb index 94a6b3ed1f..bf66457896 100644 --- a/Library/Homebrew/livecheck/livecheck.rb +++ b/Library/Homebrew/livecheck/livecheck.rb @@ -504,7 +504,7 @@ module Homebrew # Formats and prints the livecheck result for a formula/cask/resource. sig { params(info: Hash, verbose: T::Boolean, ambiguous_cask: T::Boolean, check_resource: T::Boolean).void } def print_latest_version(info, verbose:, ambiguous_cask: false, check_resource: false) - package_or_resource_s = " " if check_resource + package_or_resource_s = check_resource ? " " : "" package_or_resource_s += "#{Tty.blue}#{info[:formula] || info[:cask] || info[:resource]}#{Tty.reset}" package_or_resource_s += " (cask)" if ambiguous_cask && !check_resource package_or_resource_s += " (guessed)" if !info[:meta][:livecheckable] && !check_resource && verbose