Skip to content

Commit a7be998

Browse files
committed
detekt
1 parent 34120e7 commit a7be998

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class DiskCache(
109109
override fun loadClientRegistration(cacheKey: ClientRegistrationCacheKey): ClientRegistration? {
110110
LOG.debug { "loadClientRegistration for $cacheKey" }
111111
val inputStream = clientRegistrationCache(cacheKey).tryInputStreamIfExists()
112-
?: //try to load from in memory cache
112+
?: // try to load from in memory cache
113113
return InMemoryCache.get(clientRegistrationCache(cacheKey).toString())?.let { data ->
114114
ByteArrayInputStream(data).use { memoryStream ->
115115
loadClientRegistration(memoryStream)
@@ -176,7 +176,7 @@ class DiskCache(
176176
val cacheFile = accessTokenCache(cacheKey)
177177
// If file exists, returns InputStream, if not returns null
178178
return cacheFile.tryInputStreamIfExists()
179-
//try to load and parse access token, returns AccessToken or null if expired
179+
// try to load and parse access token, returns AccessToken or null if expired
180180
?.let { loadAccessToken(it) }
181181
// If file doesn't exist or loadAccessToken failed, try in-memory cache
182182
?: InMemoryCache.get(cacheFile.toString())?.let { data ->

0 commit comments

Comments
 (0)