lib/leftovers/collector.rb in leftovers-0.5.5 vs lib/leftovers/collector.rb in leftovers-0.6.0

- old
+ new

@@ -26,10 +26,12 @@ @test_calls = @test_calls.to_set.freeze end def collect_file_list(list) if Leftovers.parallel? - Parallel.each(list, finish: method(:finish_file), &method(:collect_file)) + Parallel.each(list, finish: method(:finish_file)) do |file| + collect_file(file) + end else list.each { |file| finish_file(nil, nil, collect_file(file)) } end end