Skip to content
Snippets Groups Projects
Commit 54145979 authored by Xu Cheng's avatar Xu Cheng
Browse files

cleanup: avoid duplicated logic


Closes Homebrew/homebrew#42900.

Signed-off-by: default avatarXu Cheng <xucheng@me.com>
parent 203cecb4
No related branches found
No related tags found
No related merge requests found
......@@ -31,12 +31,8 @@ module Homebrew
end
def cleanup_cellar
Formula.racks.each do |rack|
begin
cleanup_formula Formulary.from_rack(rack)
rescue FormulaUnavailableError, TapFormulaAmbiguityError
# Don't complain about directories from DIY installs
end
Formula.installed.each do |formula|
cleanup_formula formula
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment