From 8ca3f428d2623d0987b28fe3a598991589f22fe9 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 7 Mar 2020 09:51:47 +0000 Subject: [PATCH] Remove field.value null check The mapValue() method already accepts and returns nulls. 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 8247dca4..a5e93f18 100644 --- a/asm/src/main/java/dev/openrs2/asm/ClassNodeRemapper.kt +++ b/asm/src/main/java/dev/openrs2/asm/ClassNodeRemapper.kt @@ -22,10 +22,7 @@ fun ClassNode.remap(remapper: Remapper) { field.name = remapper.mapFieldName(originalName, field.name, field.desc) field.desc = remapper.mapDesc(field.desc) field.signature = remapper.mapSignature(field.signature, true) - - if (field.value != null) { - field.value = remapper.mapValue(field.value) - } + field.value = remapper.mapValue(field.value) } for (method in methods) {