summaryrefslogtreecommitdiff
path: root/lib/gitlab/batch_pop_queueing.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/batch_pop_queueing.rb')
-rw-r--r--lib/gitlab/batch_pop_queueing.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/batch_pop_queueing.rb b/lib/gitlab/batch_pop_queueing.rb
index 62fc8cd048e..103ce644f2b 100644
--- a/lib/gitlab/batch_pop_queueing.rb
+++ b/lib/gitlab/batch_pop_queueing.rb
@@ -73,7 +73,7 @@ module Gitlab
begin
all_args = pop_all
- yield all_args if block_given?
+ yield all_args if block
{ status: :finished, new_items: peek_all }
ensure