Skip to content

Commit

Permalink
Fix error not being returned
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Ralston committed Mar 6, 2024
1 parent 1b29cd5 commit b1db9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amember/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func doRequest[R any](endpoint string, query url.Values) (R, error) {
}(res.Body)
}
if err != nil {
return zero, nil
return zero, err
}

if res.StatusCode == http.StatusOK {
Expand Down

0 comments on commit b1db9ff

Please sign in to comment.