Commit 002a104d authored by Laura Montemayor's avatar Laura Montemayor Committed by lauraMon

Refactors to make rubocop happy

* Applies suggestion to documentation
parent 46bdb62b
......@@ -81,11 +81,13 @@ module Gitlab
# We are ignoring connections and built in types for now,
# they should be added when queries are generated.
def objects
graphql_object_types.select do |object_type|
object_types = graphql_object_types.select do |object_type|
!object_type[:name]["Connection"] &&
!object_type[:name]["Edge"] &&
!object_type[:name]["__"]
end.each do |type|
end
object_types.each do |type|
type[:fields] += type[:connections]
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