Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-06-01 08:22:31 +0300
committerShinya Maeda <shinya@gitlab.com>2018-06-06 11:49:48 +0300
commit32f825c648cb5fc829cd32b3392530613c62e983 (patch)
treed1eab8df0cab0a99f0f78cf70004e6ea89f5b8f0 /app/models/ci
parent10acdc30df99ede1356493c14a57b94ed1ae7950 (diff)
Add tests for each new code
Diffstat (limited to 'app/models/ci')
-rw-r--r--app/models/ci/build_trace_chunk.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build_trace_chunk.rb b/app/models/ci/build_trace_chunk.rb
index f17d8a07b13..7940f7c2ee7 100644
--- a/app/models/ci/build_trace_chunk.rb
+++ b/app/models/ci/build_trace_chunk.rb
@@ -60,7 +60,7 @@ module Ci
.merge(Ci::Build.finished)
.where('ci_builds.finished_at < ?', finished_before)
.each_batch(column: :build_id) do |chunks|
- build_ids = chunks.map { |chunk| [chunk.build_id] }
+ build_ids = chunks.map { |chunk| chunk.build_id }
yield build_ids
end