Skip to content

Commit

Permalink
fix comment (#1920)
Browse files Browse the repository at this point in the history
  • Loading branch information
helenye-stripe authored Nov 7, 2024
1 parent 85c25d7 commit 27bf7cf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/stripe/net/LiveStripeResponseGetter.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,6 @@ private void handleError(StripeResponse response, ApiMode apiMode) throws Stripe
OAuth errors are JSON objects where `error` is a string. In
contrast, in API errors, `error` is a hash with sub-keys. We use
this property to distinguish between OAuth and API errors.
Try to read the response body to see if it must be
*/
JsonObject responseBody = ApiResource.GSON.fromJson(response.body(), JsonObject.class);
if (responseBody.has("error") && responseBody.get("error").isJsonPrimitive()) {
Expand Down

0 comments on commit 27bf7cf

Please sign in to comment.