Skip to content

Commit

Permalink
detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadJaara committed Jan 25, 2024
1 parent 0be6b63 commit 466f697
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 466f697

Please sign in to comment.