Skip to content
Snippets Groups Projects
Commit bf8bf2e1 authored by Jack Nagel's avatar Jack Nagel
Browse files

cleanup: remove redundant condition

If f.installed? is true, f.rack.directory? will always be true as well.
parent 0c35274b
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ module Homebrew extend self
end
def cleanup_formula f
if f.installed? and f.rack.directory?
if f.installed?
f.rack.children.each do |keg|
if File.directory? keg and f.version > Keg.new(keg).version
if f.can_cleanup?
......
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