File tree Expand file tree Collapse file tree
src/main/java/com/auth0/net Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -220,13 +220,8 @@ private RateLimitException createRateLimitException(Auth0HttpResponse response)
220220 long remaining = Long .parseLong (response .getHeader ("x-ratelimit-remaining" , "-1" ));
221221 long reset = Long .parseLong (response .getHeader ("x-ratelimit-reset" , "-1" ));
222222
223- TokenQuotaBucket clientQuotaLimit = null ;
224- TokenQuotaBucket organizationQuotaLimit = null ;
225-
226- if (remaining == 0 ) {
227- clientQuotaLimit = HttpResponseHeadersUtils .getClientQuotaLimit (response .getHeaders ());
228- organizationQuotaLimit = HttpResponseHeadersUtils .getOrganizationQuotaLimit (response .getHeaders ());
229- }
223+ TokenQuotaBucket clientQuotaLimit = HttpResponseHeadersUtils .getClientQuotaLimit (response .getHeaders ());
224+ TokenQuotaBucket organizationQuotaLimit = HttpResponseHeadersUtils .getOrganizationQuotaLimit (response .getHeaders ());
230225
231226 String payload = response .getBody ();
232227 MapType mapType = mapper .getTypeFactory ().constructMapType (HashMap .class , String .class , Object .class );
You can’t perform that action at this time.
0 commit comments