remove excessive colon in validator.nim

This commit is contained in:
jangko 2023-09-11 16:04:38 +07:00
parent b69cb98136
commit 83a12c07d6
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 3 additions and 3 deletions

View File

@ -312,7 +312,7 @@ proc inputCoercion(ctx: GraphqlRef, nameNode, locType, locDefVal,
for i in 0..<inVal.len:
invalid locType[0].kind == nkListType and inVal[i].kind != nkList:
ctx.error(ErrValueError, nameNode, nkList)
visit inputCoercion(nameNode, locType[0], locDefVal, inVal, i, scope, isVar):
visit inputCoercion(nameNode, locType[0], locDefVal, inVal, i, scope, isVar)
else:
var newList = newTree(nkList, inVal)
parent[idx] = newList
@ -332,9 +332,9 @@ proc inputCoercion(ctx: GraphqlRef, nameNode, locType, locDefVal,
ctx.error(ErrScalarError, nameNode, inVal, res.error)
parent[idx] = res.get()
of skEnum:
visit coerceEnum(locType, nameNode, parent, idx, isVar):
visit coerceEnum(locType, nameNode, parent, idx, isVar)
of skInputObject:
visit coerceInputObject(nameNode, sym, inVal, scope, isVar):
visit coerceInputObject(nameNode, sym, inVal, scope, isVar)
else:
unreachable()
else: