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 ...@@ -135,10 +135,7 @@ module Gitlab
data = [] data = []
# rubocop:disable Cop/InBatches record.in_batches(of: @batch_size) do |batch| # 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|
if Feature.enabled?(:export_fast_serialize_with_raw_json, default_enabled: true) if Feature.enabled?(:export_fast_serialize_with_raw_json, default_enabled: true)
data.append(JSONBatchRelation.new(batch, options, preloads[key]).tap(&:raw_json)) data.append(JSONBatchRelation.new(batch, options, preloads[key]).tap(&:raw_json))
else else
...@@ -146,7 +143,6 @@ module Gitlab ...@@ -146,7 +143,6 @@ module Gitlab
data += batch.as_json(options) data += batch.as_json(options)
end end
end end
# rubocop:enable Cop/InBatches
data data
end end
......
...@@ -36,10 +36,11 @@ module Gitlab ...@@ -36,10 +36,11 @@ module Gitlab
end end
def stop_working def stop_working
if server # rubocop:disable Cop/LineBreakAroundConditionalBlock if server
server.shutdown server.shutdown
server.listeners.each(&:close) server.listeners.each(&:close)
end end
@server = nil @server = nil
end 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