From 1360d86747bef950f7059de39ef5ad784704e83e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 27 Sep 2012 11:52:03 -0700 Subject: [PATCH] Use `next` over select with symbol to proc --- lib/vagrant/box_collection.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/box_collection.rb b/lib/vagrant/box_collection.rb index 16104b0f8..261c3459e 100644 --- a/lib/vagrant/box_collection.rb +++ b/lib/vagrant/box_collection.rb @@ -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