From 466f697f1b74154b4d3fc5ddcb37ebf1bd52b2cf Mon Sep 17 00:00:00 2001 From: MohamadJaara Date: Thu, 25 Jan 2024 10:51:09 +0100 Subject: [PATCH] detekt --- .../kalium/testservice/managed/InstanceService.kt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/testservice/src/main/kotlin/com/wire/kalium/testservice/managed/InstanceService.kt b/testservice/src/main/kotlin/com/wire/kalium/testservice/managed/InstanceService.kt index dc1a59d142f..c328ea614d5 100644 --- a/testservice/src/main/kotlin/com/wire/kalium/testservice/managed/InstanceService.kt +++ b/testservice/src/main/kotlin/com/wire/kalium/testservice/managed/InstanceService.kt @@ -284,14 +284,20 @@ class InstanceService( // close the stream files.close() } catch (e: IOException) { - log.warn("Instance ${instance.instanceId}: Could not delete directory ${instance.instancePath}: " - + e.message) + log.warn( + "Instance ${instance.instanceId}: Could not delete directory ${instance.instancePath}: " + + e.message + ) } } }, deleteLocalFilesTimeoutInMinutes.toMinutes(), TimeUnit.MINUTES) } - private suspend fun provideVersionedAuthenticationScope(coreLogic: CoreLogic, serverLinks: ServerConfig.Links, proxyCredentials: ProxyCredentials?): AuthenticationScope = + private suspend fun provideVersionedAuthenticationScope( + coreLogic: CoreLogic, + serverLinks: ServerConfig.Links, + proxyCredentials: ProxyCredentials? + ): AuthenticationScope = when (val result = coreLogic.versionedAuthenticationScope(serverLinks).invoke(proxyCredentials)) { is AutoVersionAuthScopeUseCase.Result.Failure.Generic -> throw WebApplicationException("failed to create authentication scope: ${result.genericFailure}")