Do a block_given check on import so you can call it w/o a block

This commit is contained in:
Mitchell Hashimoto 2011-12-22 11:31:47 -08:00
parent 698ad0af7e
commit 1e21fdd67a
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ module Vagrant
current = $1.to_i
if current > last
last = current
yield current
yield current if block_given?
end
end
end