Cleanup conditional

Co-authored-by: Bo Anderson <mail@boanderson.me>
This commit is contained in:
Rylan Polster 2021-10-31 15:43:13 -04:00 committed by GitHub
parent 83073c3ee6
commit 6bd507d472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -890,8 +890,7 @@ module Homebrew
# Formulae installed with HOMEBREW_INSTALL_FROM_API should not count as deleted formulae
# but may not have a tap listed in their tab
tap = Tab.for_keg(keg).tap
next if tap.present? && tap.core_tap?
next if tap.blank? && Homebrew::API::Bottle.available?(keg.name)
next if (tap.blank? || tap.core_tap?) && Homebrew::API::Bottle.available?(keg.name)
end
keg.name