File tree 3 files changed +3
-3
lines changed
secrets/vault/src/main/kotlin
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ group = "org.eclipse.apoapsis.ortserver"
35
35
application {
36
36
mainClass.set(" io.ktor.server.netty.EngineMain" )
37
37
38
- val isDevelopment: Boolean = project.ext.has(" development" )
38
+ val isDevelopment = project.ext.has(" development" )
39
39
applicationDefaultJvmArgs = listOf (" -Dio.ktor.development=$isDevelopment " )
40
40
}
41
41
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import org.jetbrains.exposed.sql.Database
36
36
import org.koin.ktor.ext.inject
37
37
import org.koin.ktor.plugin.KOIN_ATTRIBUTE_KEY
38
38
39
- val DatabaseReady : EventDefinition <Database > = EventDefinition ()
39
+ val DatabaseReady = EventDefinition <Database >()
40
40
41
41
/* *
42
42
* Connect and migrate the database. This is the only place where migrations for the production database are done. While
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ class VaultSecretsProvider(
97
97
when {
98
98
response.status == HttpStatusCode .NotFound -> null
99
99
response.status.isSuccess() -> {
100
- val secretResponse: VaultSecretResponse = response.body()
100
+ val secretResponse = response.body< VaultSecretResponse > ()
101
101
secretResponse.data.value?.let (::Secret )
102
102
}
103
103
You can’t perform that action at this time.
0 commit comments