We don't need a Pathname just to stat the directory

This commit is contained in:
Jack Nagel 2014-10-17 12:01:27 -05:00
parent ecc09cee7e
commit f840c592f0

View File

@ -150,7 +150,6 @@ module FormulaCellarChecks
private private
def relative_glob(dir, pattern) def relative_glob(dir, pattern)
return [] unless Pathname.new(dir).directory? File.directory?(dir) ? Dir.chdir(dir) { Dir[pattern] } : []
Dir.chdir(dir) { Dir[pattern] }
end end
end end