Remove field.value null check

The mapValue() method already accepts and returns nulls.

Signed-off-by: Graham <gpe@openrs2.dev>
master
Graham 5 years ago
parent 00f0279e15
commit 8ca3f428d2
  1. 5
      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) {

Loading…
Cancel
Save