cleanup: remove redundant condition

If f.installed? is true, f.rack.directory? will always be true as well.
This commit is contained in:
Jack Nagel 2013-05-15 12:45:36 -05:00
parent 0c35274bf4
commit bf8bf2e1d1

View File

@ -33,7 +33,7 @@ module Homebrew extend self
end end
def cleanup_formula f def cleanup_formula f
if f.installed? and f.rack.directory? if f.installed?
f.rack.children.each do |keg| f.rack.children.each do |keg|
if File.directory? keg and f.version > Keg.new(keg).version if File.directory? keg and f.version > Keg.new(keg).version
if f.can_cleanup? if f.can_cleanup?