forked from Mirrors/jsonapi
whitespace
This commit is contained in:
parent
e7bfab161c
commit
9b34096108
|
@ -122,7 +122,6 @@ func visitModelNode(model interface{}, sideload bool) (*Node, []*Node, error) {
|
|||
node.Attributes[args[1]] = fieldValue.Interface()
|
||||
}
|
||||
} else if annotation == "relation" {
|
||||
|
||||
isSlice := fieldValue.Type().Kind() == reflect.Slice
|
||||
|
||||
if (isSlice && fieldValue.Len() < 1) || (!isSlice && fieldValue.IsNil()) {
|
||||
|
|
Loading…
Reference in New Issue