From 5ee2eccb83779ff8c6a9bac46d4e83a5e30e42e5 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 10 Jan 2021 22:19:14 +0000 Subject: [PATCH] Remove redundant init block Signed-off-by: Graham --- conf/src/main/kotlin/org/openrs2/conf/Config.kt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/conf/src/main/kotlin/org/openrs2/conf/Config.kt b/conf/src/main/kotlin/org/openrs2/conf/Config.kt index 4613989f..97c01997 100644 --- a/conf/src/main/kotlin/org/openrs2/conf/Config.kt +++ b/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]+")