Return IfStmt from getIf()

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 4 years ago
parent 1833221bc8
commit a75db6122b
  1. 2
      deob-ast/src/main/java/dev/openrs2/deob/ast/transform/IfElseTransformer.kt

@ -214,7 +214,7 @@ class IfElseTransformer : Transformer() {
return getIf() != null return getIf() != null
} }
private fun Statement.getIf(): Statement? { private fun Statement.getIf(): IfStmt? {
return when (this) { return when (this) {
is IfStmt -> clone() is IfStmt -> clone()
is BlockStmt -> { is BlockStmt -> {

Loading…
Cancel
Save