Only call games.single() when game is accessed

Signed-off-by: Graham <gpe@openrs2.org>
Graham 4 years ago
parent f870410a09
commit e4776f7c3c
  1. 3
      archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt

@ -59,7 +59,8 @@ public class CacheExporter @Inject constructor(
val urls: SortedSet<String>, val urls: SortedSet<String>,
val stats: Stats? val stats: Stats?
) { ) {
val game: String = games.single() val game: String
get() = games.single()
} }
public data class Key( public data class Key(

Loading…
Cancel
Save