diff --git a/src/main/resources/handlebars/Java/libraries/retrofit2/auth/OAuth.mustache b/src/main/resources/handlebars/Java/libraries/retrofit2/auth/OAuth.mustache index 59c0984ae2..80ec7b3946 100644 --- a/src/main/resources/handlebars/Java/libraries/retrofit2/auth/OAuth.mustache +++ b/src/main/resources/handlebars/Java/libraries/retrofit2/auth/OAuth.mustache @@ -113,7 +113,6 @@ public class OAuth implements Interceptor { // 401/403 most likely indicates that access token has expired. Unless it happens two times in a row. if ( response != null && (response.code() == HTTP_UNAUTHORIZED || response.code() == HTTP_FORBIDDEN) && updateTokenAndRetryOnAuthorizationFailure ) { - if ( response != null && (response.code() == HTTP_UNAUTHORIZED || response.code() == HTTP_FORBIDDEN) && updateTokenAndRetryOnAuthorizationFailure ) { try { if (updateAccessToken(requestAccessToken)) { response.body().close();