Make Rubocop happy

parent 7b921683
...@@ -135,8 +135,8 @@ class GeoNode < ActiveRecord::Base ...@@ -135,8 +135,8 @@ class GeoNode < ActiveRecord::Base
if selective_sync? if selective_sync?
relations = namespaces.map { |namespace| namespace.all_projects.select(:id) } relations = namespaces.map { |namespace| namespace.all_projects.select(:id) }
Project.unscoped. Project.unscoped
from("(#{Gitlab::SQL::Union.new(relations).to_sql}) #{Project.table_name}") .from("(#{Gitlab::SQL::Union.new(relations).to_sql}) #{Project.table_name}")
else else
Project.all Project.all
end end
......
...@@ -62,7 +62,6 @@ describe GeoNodeStatus, :geo, :truncate do ...@@ -62,7 +62,6 @@ describe GeoNodeStatus, :geo, :truncate do
create(:geo_file_registry, :avatar, file_id: uploads[2], success: false) create(:geo_file_registry, :avatar, file_id: uploads[2], success: false)
expect(subject.attachments_synced_count).to eq(2) expect(subject.attachments_synced_count).to eq(2)
end end
it 'does not count synced files that were replaced' do it 'does not count synced files that were replaced' do
......
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