Improve indentation a bit in Configuration.kt

Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404-59 2026-02-21 16:32:53 +01:00
parent ed3d5d447a
commit f3c1b4f0c8
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

View File

@ -118,13 +118,13 @@ object Configuration {
)
}
private fun Config.withFullModifiableValues() = @Suppress("DEPRECATION_ERROR")
ModifiableValues.entries.fold(this) { previous, entry ->
previous.withValue(entry.key, entry.value.let {
ConfigValueFactory.fromAnyRef(
if (it !is Lazy<*>) it else it.value
)
})
}
ModifiableValues.entries.fold(this) { previous, entry ->
previous.withValue(entry.key, entry.value.let {
ConfigValueFactory.fromAnyRef(
if (it !is Lazy<*>) it else it.value
)
})
}
private suspend fun writeConfig(c: Config) = coroutineScope {
launch(start = CoroutineStart.UNDISPATCHED) {
file.writeText(
@ -173,5 +173,5 @@ object Configuration {
convertValue(T::class) ?: throw e
}
operator fun <T> setValue(ref: Any?, property: KProperty<*>, value: T) = @Suppress("DEPRECATION_ERROR")
ModifiableValues.setValue(ref, property, value)
ModifiableValues.setValue(ref, property, value)
}