Use `next` over select with symbol to proc
This commit is contained in:
parent
6a1ffd6550
commit
1360d86747
|
@ -133,7 +133,9 @@ module Vagrant
|
||||||
results = []
|
results = []
|
||||||
|
|
||||||
@logger.debug("Finding all boxes in: #{@directory}")
|
@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
|
box_name = child.basename.to_s
|
||||||
|
|
||||||
# If this is a V1 box, we still return that name, but specify
|
# If this is a V1 box, we still return that name, but specify
|
||||||
|
|
Loading…
Reference in New Issue