Merge pull request #6759 from davidrupp/patch-1

Fix that `reason` is coerced to a boolean
This commit is contained in:
Mike McQuaid 2019-11-20 15:12:13 +00:00 committed by GitHub
commit fb978a7862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ module Homebrew
if $stdout.tty?
count = all_formulae.count + all_casks.count
if reason = MissingFormula.reason(query, silent: true) && !local_casks.include?(query)
if (reason = MissingFormula.reason(query, silent: true)) && !local_casks.include?(query)
if count.positive?
puts
puts "If you meant #{query.inspect} specifically:"