Return IfStmt from getIf()

Signed-off-by: Graham <gpe@openrs2.dev>
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
}
private fun Statement.getIf(): Statement? {
private fun Statement.getIf(): IfStmt? {
return when (this) {
is IfStmt -> clone()
is BlockStmt -> {

Loading…
Cancel
Save