Skip to content

Commit

Permalink
clean(java-sdk): use an already-defined constant instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
booniepepper authored Oct 11, 2023
1 parent 2225ae9 commit fcf4143
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class HttpStatusCode {
* Returns true for an HTTP status code that could reasonably be retried.
*/
public static boolean isRetryable(int statusCode) {
return statusCode == 429 || (isServerError(statusCode) && statusCode != NOT_IMPLEMENTED);
return statusCode == TOO_MANY_REQUESTS || (isServerError(statusCode) && statusCode != NOT_IMPLEMENTED);
}

private static boolean isBetween(int min, int n, int maxExclusive) {
Expand Down

0 comments on commit fcf4143

Please sign in to comment.