Commit 75c6b5e5 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve readability in register job service

parent 38c91c0c
...@@ -118,11 +118,11 @@ module Ci ...@@ -118,11 +118,11 @@ module Ci
yield Ci::Build.find(build_id) yield Ci::Build.find(build_id)
end end
else else
builds = retrieve_queue(-> { builds.to_a }) builds_array = retrieve_queue(-> { builds.to_a })
@metrics.observe_queue_size(-> { builds.size }) @metrics.observe_queue_size(-> { builds_array.size })
builds.each(&blk) builds_array.each(&blk)
end end
end end
# rubocop: enable CodeReuse/ActiveRecord # rubocop: enable CodeReuse/ActiveRecord
......
...@@ -55,7 +55,6 @@ module Gitlab ...@@ -55,7 +55,6 @@ module Gitlab
@ignore_writes = false @ignore_writes = false
end end
def write! def write!
@performed_write = true @performed_write = true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment