Skip to content

Commit e9f117e

Browse files
committed
fix logic error, break needs to be for loop not switch
1 parent 6bf44fa commit e9f117e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

response.go

+3
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ func visitModelNode(model interface{}, included *map[string]*Node,
270270
// We had a JSON float (numeric), but our field was not one of the
271271
// allowed numeric types
272272
er = ErrBadJSONAPIID
273+
}
274+
275+
if er != nil {
273276
break
274277
}
275278

0 commit comments

Comments
 (0)