Skip to content

Commit

Permalink
solved lint issues I think
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsankesara committed Oct 24, 2023
1 parent 9357146 commit 99a0431
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import org.radarbase.authorizer.config.AuthorizerConfig
import org.radarbase.authorizer.doa.entity.RestSourceUser
import org.radarbase.jersey.exception.HttpBadGatewayException
import org.radarbase.jersey.util.request
import org.radarbase.jersey.util.requestJson

class OuraAuthorizationService(
@Context private val clients: RestSourceClientService,
Expand Down Expand Up @@ -69,8 +68,7 @@ class OuraAuthorizationService(
.execute()
.use { response ->
when (response.code) {
200 ->
response.body?.byteStream()
200 -> response.body?.byteStream()
?.let {
oauthUserReader.readValue<OuraAuthUserId>(it).userId
}
Expand Down

0 comments on commit 99a0431

Please sign in to comment.