Do a block_given check on import so you can call it w/o a block
This commit is contained in:
parent
698ad0af7e
commit
1e21fdd67a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue