Reorder some functions in Configuration.kt

This commit is contained in:
Username404 2021-06-05 10:51:34 +02:00
parent 4e90033581
commit 0b3f3907d2
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 2 deletions

View File

@ -51,11 +51,10 @@ object Configuration {
}
}
operator fun invoke() = obtained
operator fun getValue(ref: Any?, property: KProperty<*>): Boolean = invoke().getValue(ref, property)
operator fun <T> setValue(ref: Any?, property: KProperty<*>, value: T) { ModifiableValues[property.name] = { ConfigValueFactory.fromAnyRef(value) } }
operator fun invoke() = obtained
private val obtained: Config by lazy {
var result: Config = empty()
with(file) {