cleanup: remove redundant condition
If f.installed? is true, f.rack.directory? will always be true as well.
This commit is contained in:
parent
0c35274bf4
commit
bf8bf2e1d1
@ -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?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user