Skip to content

Commit 7504455

Browse files
committed
remove comment
1 parent f3cf2c2 commit 7504455

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/credentials/sso/SsoAccessTokenProvider.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ class SsoAccessTokenProvider(
362362
}
363363
}
364364

365-
// error being thrown while loading registration, add try-catch blocks.
366365
fun refreshToken(currentToken: AccessToken): AccessToken {
367366
if (currentToken.refreshToken == null) {
368367
val message = "Requested token refresh, but refresh token was null"
@@ -464,7 +463,6 @@ class SsoAccessTokenProvider(
464463
SAVE_TOKEN,
465464
}
466465

467-
// these throw fileNotFoundException if file doesnt exist.
468466
private fun loadDagClientRegistration(): ClientRegistration? =
469467
try {
470468
cache.loadClientRegistration(dagClientRegistrationCacheKey)?.let {
@@ -484,7 +482,7 @@ class SsoAccessTokenProvider(
484482
}
485483

486484
private fun saveClientRegistration(registration: ClientRegistration) {
487-
var credentialType: String
485+
val credentialType: String
488486
try {
489487
when (registration) {
490488
is DeviceAuthorizationClientRegistration -> {

0 commit comments

Comments
 (0)