فهرست منبع

Small fix, remove bad code added by 45d834b

Ruslan Talpa 9 سال پیش
والد
کامیت
ea4edaa17b
1فایلهای تغییر یافته به همراه0 افزوده شده و 3 حذف شده
  1. 0 3
      graphql/rules.lua

+ 0 - 3
graphql/rules.lua

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