break if database_cache.empty?

This commit is contained in:
Andrew R. McBurney 2018-05-17 16:35:35 -04:00
parent ba5692f7e5
commit 4fb14d5c86

View File

@ -612,7 +612,8 @@ class FormulaInstaller
# Updates the cache for a particular formula after doing an install
DatabaseCache.new(:linkage) do |database_cache|
LinkageChecker.new(keg, database_cache, false, formula) unless database_cache.empty?
break if database_cache.empty?
LinkageChecker.new(keg, database_cache, false, formula)
end
# let's reset Utils.git_available? if we just installed git