Remove redundant init block

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
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 operator: String,
val domain: String val domain: String
) { ) {
val internalGame: String val internalGame: String = game.toInternalName()
val internalOperator: String val internalOperator: String = operator.toInternalName()
init {
internalGame = game.toInternalName()
internalOperator = operator.toInternalName()
}
private companion object { private companion object {
private val INTERNAL_NAME_REGEX = Regex("(?i)[^a-z0-9]+") private val INTERNAL_NAME_REGEX = Regex("(?i)[^a-z0-9]+")

Loading…
Cancel
Save