lib/metacrunch/job/buffer.rb in metacrunch-4.1.1 vs lib/metacrunch/job/buffer.rb in metacrunch-4.2.0
- old
+ new
@@ -20,10 +20,10 @@
flush if @size_or_proc.call == true
end
end
def flush
- @buffer
+ @buffer.presence
ensure
@buffer = []
end
end