Skip to content

Commit d683bb4

Browse files
committed
refactor: remove redundant code
1 parent 14d8a30 commit d683bb4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/com/factset/sdk/utils/authentication/ConfidentialClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,8 @@ private void requestProviderMetadata() throws AuthServerMetadataContentException
195195
if (this.requestOptions == null) stream = wellKnownURL.openStream();
196196
else {
197197
HttpURLConnection conn = (HttpURLConnection) wellKnownURL.openConnection(this.requestOptions.getProxy());
198-
HttpsURLConnection sslConn = null;
199198
if (conn instanceof HttpsURLConnection) {
200-
sslConn = (HttpsURLConnection) conn;
199+
HttpsURLConnection sslConn = (HttpsURLConnection) conn;
201200
sslConn.setHostnameVerifier(this.requestOptions.getHostnameVerifier());
202201
sslConn.setSSLSocketFactory(this.requestOptions.getSslSocketFactory());
203202
}

0 commit comments

Comments
 (0)