Skip to content

Remove unused throws exception on close #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class AzureTokenAuthConfigBuilder extends TokenAuthConfig.Builder<AzureTo
public static final int DEFAULT_TOKEN_REQUEST_EXECUTION_TIMEOUT_IN_MS = 1000;
public static final int DEFAULT_MAX_ATTEMPTS_TO_RETRY = 5;
public static final int DEFAULT_DELAY_IN_MS_TO_RETRY = 100;
public static final Set<String> DEFAULT_SCOPES = Collections.singleton("https://redis.azure.com/.default");;
public static final Set<String> DEFAULT_SCOPES = Collections.singleton("https://redis.azure.com/.default");

private DefaultAzureCredential defaultAzureCredential;
private Set<String> scopes = DEFAULT_SCOPES;
Expand Down Expand Up @@ -89,7 +89,7 @@ public TokenAuthConfig build() {
}

@Override
public void close() throws Exception {
public void close() {
defaultAzureCredential = null;
scopes = null;
}
Expand Down
Loading