From 1c13fec91f92270ace205e9ab99646e7d34656bf Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 13 Dec 2020 15:16:26 +0000 Subject: [PATCH] Replace `?: throw AssertionError()` with `!!` Signed-off-by: Graham --- cache/src/main/kotlin/org/openrs2/cache/NamedEntryCollection.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/src/main/kotlin/org/openrs2/cache/NamedEntryCollection.kt b/cache/src/main/kotlin/org/openrs2/cache/NamedEntryCollection.kt index f9d268b0..7c78ea1c 100644 --- a/cache/src/main/kotlin/org/openrs2/cache/NamedEntryCollection.kt +++ b/cache/src/main/kotlin/org/openrs2/cache/NamedEntryCollection.kt @@ -128,7 +128,7 @@ public abstract class NamedEntryCollection( val nameHashTable = nameHashTable ?: return null val ids = nameHashTable.getOrDefault(nameHash, IntSortedSets.EMPTY_SET) return if (ids.isNotEmpty()) { - get(ids.firstInt()) ?: throw AssertionError() + get(ids.firstInt())!! } else { null }