Browse Source

Small fix, remove bad code added by 45d834b

Ruslan Talpa 9 years ago
parent
commit
ea4edaa17b
1 changed files with 0 additions and 3 deletions
  1. 0 3
      graphql/rules.lua

+ 0 - 3
graphql/rules.lua

@@ -276,9 +276,6 @@ end
 function rules.fragmentSpreadIsPossible(node, context)
   local fragment = node.kind == 'inlineFragment' and node or context.fragmentMap[node.name.value]
   local parentType = context.objects[#context.objects - 1]
-  if(parent.__type == 'List') then
-      parent = parent.ofType
-  end
 
   local fragmentType
   if node.kind == 'inlineFragment' then