Skip to content

Commit 769caae

Browse files
authored
Update request.go
1 parent 5dc5df2 commit 769caae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

request.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,9 @@ func unmarshalNode(data *Node, model reflect.Value, included *map[string]*Node)
495495
// Explicit null supplied for the field value
496496
// If a nullable relationship we set the field value to a map with a single entry
497497
if isExplicitNull {
498-
fieldValue.Set(reflect.MakeMapWithSize(fieldValue.Type(), 1))
499-
fieldValue.SetMapIndex(reflect.ValueOf(false), m)
500-
}
498+
fieldValue.Set(reflect.MakeMapWithSize(fieldValue.Type(), 1))
499+
fieldValue.SetMapIndex(reflect.ValueOf(false), m)
500+
}
501501

502502
continue
503503
}

0 commit comments

Comments
 (0)