Skip to content

Commit 0ebf0e2

Browse files
sschuberthmnonnenmacher
authored andcommitted
chore: Avoid explicit type declarations in assignments
Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 3677541 commit 0ebf0e2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

core/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ group = "org.eclipse.apoapsis.ortserver"
3535
application {
3636
mainClass.set("io.ktor.server.netty.EngineMain")
3737

38-
val isDevelopment: Boolean = project.ext.has("development")
38+
val isDevelopment = project.ext.has("development")
3939
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
4040
}
4141

core/src/main/kotlin/plugins/Database.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import org.jetbrains.exposed.sql.Database
3636
import org.koin.ktor.ext.inject
3737
import org.koin.ktor.plugin.KOIN_ATTRIBUTE_KEY
3838

39-
val DatabaseReady: EventDefinition<Database> = EventDefinition()
39+
val DatabaseReady = EventDefinition<Database>()
4040

4141
/**
4242
* Connect and migrate the database. This is the only place where migrations for the production database are done. While

secrets/vault/src/main/kotlin/VaultSecretsProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class VaultSecretsProvider(
9797
when {
9898
response.status == HttpStatusCode.NotFound -> null
9999
response.status.isSuccess() -> {
100-
val secretResponse: VaultSecretResponse = response.body()
100+
val secretResponse = response.body<VaultSecretResponse>()
101101
secretResponse.data.value?.let(::Secret)
102102
}
103103

0 commit comments

Comments
 (0)