Use `next` over select with symbol to proc

This commit is contained in:
Mitchell Hashimoto 2012-09-27 11:52:03 -07:00
parent 6a1ffd6550
commit 1360d86747
1 changed files with 3 additions and 1 deletions

View File

@ -133,7 +133,9 @@ module Vagrant
results = []
@logger.debug("Finding all boxes in: #{@directory}")
@directory.children(true).select(&:directory?).each do |child|
@directory.children(true).each do |child|
next if !child.directory?
box_name = child.basename.to_s
# If this is a V1 box, we still return that name, but specify