Skip to content

Commit b7cef7f

Browse files
committed
change when with subject
1 parent a2a9248 commit b7cef7f

File tree

1 file changed

+3
-3
lines changed
  • plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/credentials

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,14 +334,14 @@ fun maybeReauthProviderIfNeeded(
334334
return@runUnderProgressIfNeeded false
335335
}
336336
} catch (e: Exception) {
337-
when {
338-
e is SsoOidcException -> {
337+
when (e){
338+
is SsoOidcException -> {
339339
AuthTelemetry.sourceOfRefresh(authRefreshSource = reauthSource.toString())
340340
getLogger<ToolkitAuthManager>().warn(e) { "Redriving bearer token login flow since token could not be refreshed" }
341341
onReauthRequired(e)
342342
return true
343343
}
344-
e is UnknownHostException || e is SdkClientException -> {
344+
is UnknownHostException, is SdkClientException -> {
345345
getLogger<ToolkitAuthManager>().warn(e) { "Failed to refresh token" }
346346
if (hasSeenFirstNetworkError.compareAndSet(false, true)) {
347347
notifyInfo(

0 commit comments

Comments
 (0)