diff --git a/src/main/kotlin/org/radarbase/jersey/service/managementportal/MPClient.kt b/src/main/kotlin/org/radarbase/jersey/service/managementportal/MPClient.kt index 71e9909..6bcab3e 100644 --- a/src/main/kotlin/org/radarbase/jersey/service/managementportal/MPClient.kt +++ b/src/main/kotlin/org/radarbase/jersey/service/managementportal/MPClient.kt @@ -40,7 +40,7 @@ class MPClient( private var token: RestOauth2AccessToken? = null private val validToken: RestOauth2AccessToken? - get() = token?.takeIf { it.isValid() } + get() = token?.takeIf { it.isValid() } private fun ensureToken(): String = (validToken ?: requestToken().also { token = it })