Commit d8d8faf0 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'alipniagov-remove-redundant-cop-disable' into 'master'

Remove redundant comment and cop disable

See merge request gitlab-org/gitlab!18121
parents 5e2b6890 00f53301
......@@ -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
......
......@@ -36,10 +36,11 @@ module Gitlab
end
def stop_working
if server # rubocop:disable Cop/LineBreakAroundConditionalBlock
if server
server.shutdown
server.listeners.each(&:close)
end
@server = nil
end
......
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