Skip to content

Commit

Permalink
Small fix based on feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksrandall authored and neelance committed May 27, 2017
1 parent e90d108 commit 48c1a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/validation/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ func validateLiteral(c *opContext, l common.Literal) {
func validateValueType(c *opContext, v common.Literal, t common.Type) (bool, string) {
if v, ok := v.(*common.Variable); ok {
for _, op := range c.ops {
if v2 := op.Vars.Get(v.Name); v != nil && v2 != nil {
if v2 := op.Vars.Get(v.Name); v2 != nil {
t2, err := common.ResolveType(v2.Type, c.schema.Resolve)
if _, ok := t2.(*common.NonNull); !ok && v2.Default != nil {
t2 = &common.NonNull{OfType: t2}
Expand Down

0 comments on commit 48c1a0f

Please sign in to comment.