Skip to content

Commit

Permalink
fix logic error, break needs to be for loop not switch
Browse files Browse the repository at this point in the history
  • Loading branch information
shwoodard committed Oct 16, 2018
1 parent 6bf44fa commit e9f117e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions response.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e9f117e

Please sign in to comment.