Move return outside try block

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
Graham 4 years ago
parent 5ee2eccb83
commit 6f815b6334
  1. 6
      crypto/src/main/kotlin/org/openrs2/crypto/Xtea.kt

@ -49,15 +49,15 @@ public class XteaKey(
return null
}
try {
return try {
val k0 = Integer.parseUnsignedInt(s, 0, 8, 16)
val k1 = Integer.parseUnsignedInt(s, 8, 16, 16)
val k2 = Integer.parseUnsignedInt(s, 16, 24, 16)
val k3 = Integer.parseUnsignedInt(s, 24, 32, 16)
return XteaKey(k0, k1, k2, k3)
XteaKey(k0, k1, k2, k3)
} catch (ex: NumberFormatException) {
return null
null
}
}
}

Loading…
Cancel
Save