diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-07 15:06:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-07 15:06:18 +0300 |
commit | 185f428fa5e6123ffa0f29e307523da138e7b028 (patch) | |
tree | 1d5bb1d4700c0953aed2ad0e5d3515cc7935e550 /lib/gitlab/import_export | |
parent | ab2382923e7a864a3fa27fdf8eeb9b21893b9147 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/import_export')
-rw-r--r-- | lib/gitlab/import_export/fast_hash_serializer.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/import_export/fast_hash_serializer.rb b/lib/gitlab/import_export/fast_hash_serializer.rb index e2d5c5ae055..5a067b5c9f3 100644 --- a/lib/gitlab/import_export/fast_hash_serializer.rb +++ b/lib/gitlab/import_export/fast_hash_serializer.rb @@ -135,10 +135,7 @@ module Gitlab data = [] - # rubocop:disable Cop/InBatches - # If we put `rubocop:disable` inline after `do |batch|`, - # `Cop/LineBreakAroundConditionalBlock` will fail - record.in_batches(of: @batch_size) do |batch| + record.in_batches(of: @batch_size) do |batch| # rubocop:disable Cop/InBatches if Feature.enabled?(:export_fast_serialize_with_raw_json, default_enabled: true) data.append(JSONBatchRelation.new(batch, options, preloads[key]).tap(&:raw_json)) else @@ -146,7 +143,6 @@ module Gitlab data += batch.as_json(options) end end - # rubocop:enable Cop/InBatches data end |