Merge pull request #6741 from MikeMcQuaid/upgrade_exit

cmd/upgrade: fix exit logic.
This commit is contained in:
Mike McQuaid 2019-11-14 07:51:19 -08:00 committed by GitHub
commit b80defdd33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ module Homebrew
opoo "#{f.full_specified_name} #{version} already installed" opoo "#{f.full_specified_name} #{version} already installed"
end end
end end
exit return if outdated.empty?
end end
pinned = outdated.select(&:pinned?) pinned = outdated.select(&:pinned?)