Remove redundant init block

Signed-off-by: Graham <gpe@openrs2.org>
Graham 4 years ago
parent 918f8ab379
commit 5ee2eccb83
  1. 9
      conf/src/main/kotlin/org/openrs2/conf/Config.kt

@ -5,13 +5,8 @@ public data class Config(
val operator: String,
val domain: String
) {
val internalGame: String
val internalOperator: String
init {
internalGame = game.toInternalName()
internalOperator = operator.toInternalName()
}
val internalGame: String = game.toInternalName()
val internalOperator: String = operator.toInternalName()
private companion object {
private val INTERNAL_NAME_REGEX = Regex("(?i)[^a-z0-9]+")

Loading…
Cancel
Save