Skip to content

Commit

Permalink
fix: sonarQube issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaDel03 committed Dec 19, 2024
1 parent daadc10 commit 27777e5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//Copyright (c) Microsoft Corporation. All rights reserved.
//Licensed under the MIT License.


/*
* SPDX-License-Identifier: AGPL-3.0-or-later
*
Expand Down Expand Up @@ -101,7 +102,6 @@ public void handle(Callback[] callbacks) throws IOException, UnsupportedCallback
private OAuthBearerToken getOAuthBearerToken() throws MalformedURLException, InterruptedException, ExecutionException, TimeoutException {
if (this.aadClient == null) {
synchronized(this) {
if (this.aadClient == null) {
IClientCredential credential = null;
try (FileInputStream certificato = new FileInputStream(new File(pfxPathName))) {
credential = ClientCredentialFactory.createFromCertificate(certificato, this.pwd);
Expand All @@ -112,7 +112,6 @@ private OAuthBearerToken getOAuthBearerToken() throws MalformedURLException, Int
this.aadClient = ConfidentialClientApplication.builder(this.appId, credential)
.authority(this.tenantId)
.build();
}
}
}

Expand Down

0 comments on commit 27777e5

Please sign in to comment.