lib/chillfile/sync.rb in chillfile-0.0.2 vs lib/chillfile/sync.rb in chillfile-0.0.3
- old
+ new
@@ -111,11 +111,11 @@
return true if list.empty?
list_iterator = lambda do |notifier|
list.each do |args|
block.call(*args)
+ notifier.call if notifier
end
- notifier.call if notifier
end
if @progressbar
@progressbar.call({:name => title, :size => list.size}, list_iterator)
else
\ No newline at end of file