diff --git a/response.go b/response.go index 9507538..ecdb8c9 100644 --- a/response.go +++ b/response.go @@ -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()) {