diff --git a/common/src/main/kotlin/fr/username404/snowygui/EventSnowy.kt b/common/src/main/kotlin/fr/username404/snowygui/EventSnowy.kt index 30f3b46..d82aca6 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/EventSnowy.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/EventSnowy.kt @@ -8,7 +8,7 @@ interface EventSnowy { } } companion object { - fun useKey(key: String): MutableSet { return eventMap.getOrPut(key, ::mutableSetOf) } + fun useKey(key: String): MutableSet = eventMap.getOrPut(key, ::mutableSetOf) private val eventMap: MutableMap> = mutableMapOf() } }