Remove uneeded warning message when searching for a cask that was migrated from a formula

This commit is contained in:
Thomas Plaçais 2019-10-11 22:44:52 +01:00
parent 70f232ada5
commit e616a23a0b
No known key found for this signature in database
GPG Key ID: 07A0D2AA8C0424B0

View File

@ -100,7 +100,7 @@ module Homebrew
puts Formatter.columns(all_casks)
end
if $stdout.tty?
if $stdout.tty? && !local_casks.include?(query)
count = all_formulae.count + all_casks.count
if reason = MissingFormula.reason(query, silent: true)