Skip to content

Commit 826cd82

Browse files
committed
PMD again 🙄
1 parent 628c3bb commit 826cd82

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

cloudplatform/connectivity-oauth/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/HttpClient5OAuth2TokenService.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ private String executeRequest(
133133
.build();
134134
});
135135
}
136+
catch( final OAuth2ServiceException e ) {
137+
throw e;
138+
}
136139
catch( final IOException e ) {
137-
if( e instanceof OAuth2ServiceException ) {
138-
throw (OAuth2ServiceException) e;
139-
} else {
140140
final var exception =
141141
OAuth2ServiceException
142142
.builder("Error requesting access token!")
@@ -146,7 +146,6 @@ private String executeRequest(
146146
.build();
147147
exception.initCause(e);
148148
throw exception;
149-
}
150149
}
151150
}
152151

0 commit comments

Comments
 (0)