Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Mann committed May 29, 2021
1 parent 0da4c4e commit ab822ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/formula.rb
Expand Up @@ -2182,8 +2182,8 @@ def eligible_kegs_for_cleanup(quiet: false)
eligible_for_cleanup = []
if latest_version_installed?
eligible_kegs = if head?
# Remove latest head and stable kegs
head, stable = installed_kegs.partition { |k| k.version.head? }
# Remove newest head and stable kegs
head.sort_by(&:version).slice(0...-1) + stable.sort_by(&:version).slice(0...-1)
else
installed_kegs.select do |keg|
Expand Down

0 comments on commit ab822ce

Please sign in to comment.