From 00f0279e15d2462d7aa56a592903a1e4eb180779 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 7 Mar 2020 09:50:47 +0000 Subject: [PATCH] Use safe call operator Signed-off-by: Graham --- asm/src/main/java/dev/openrs2/asm/ClassNodeRemapper.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/asm/src/main/java/dev/openrs2/asm/ClassNodeRemapper.kt b/asm/src/main/java/dev/openrs2/asm/ClassNodeRemapper.kt index 3ab9701f3b..8247dca4c5 100644 --- a/asm/src/main/java/dev/openrs2/asm/ClassNodeRemapper.kt +++ b/asm/src/main/java/dev/openrs2/asm/ClassNodeRemapper.kt @@ -16,10 +16,7 @@ fun ClassNode.remap(remapper: Remapper) { name = remapper.mapType(originalName) signature = remapper.mapSignature(signature, false) superName = remapper.mapType(superName) - - if (interfaces != null) { - interfaces = interfaces.map(remapper::mapType) - } + interfaces = interfaces?.map(remapper::mapType) for (field in fields) { field.name = remapper.mapFieldName(originalName, field.name, field.desc)