forked from Mirrors/jsonapi
fix logic error, break needs to be for loop not switch
This commit is contained in:
parent
6bf44faa3c
commit
e9f117e24a
|
@ -270,6 +270,9 @@ func visitModelNode(model interface{}, included *map[string]*Node,
|
|||
// We had a JSON float (numeric), but our field was not one of the
|
||||
// allowed numeric types
|
||||
er = ErrBadJSONAPIID
|
||||
}
|
||||
|
||||
if er != nil {
|
||||
break
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue