Make Rubocop happy

parent 37a5e2a9
......@@ -135,7 +135,7 @@ class GeoNode < ActiveRecord::Base
if selective_sync?
relations = namespaces.map { |namespace| namespace.all_projects.select(:id) }
Project.where("id IN (#{Gitlab::SQL::Union.new(relations).to_sql})")
Project.where("id IN (#{Gitlab::SQL::Union.new(relations).to_sql})") # rubocop:disable GitlabSecurity/SqlInjection
else
Project.all
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