Selaa lähdekoodia

Small fix, remove bad code added by 45d834b

Ruslan Talpa 9 vuotta sitten
vanhempi
commit
ea4edaa17b
1 muutettua tiedostoa jossa 0 lisäystä ja 3 poistoa
  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