Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit d2dc8ed

Browse files
committed
add local to core variable to run in strict mode
1 parent ba62792 commit d2dc8ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql/core/validate.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ local visitors = {
220220

221221
fragmentDefinition = {
222222
enter = function(node, context)
223-
kind = context.schema:getType(node.typeCondition.name.value) or false
223+
local kind = context.schema:getType(node.typeCondition.name.value) or false
224224
table.insert(context.objects, kind)
225225
end,
226226

0 commit comments

Comments
 (0)