diff --git a/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/NegativeLiteralTransformer.kt b/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/NegativeLiteralTransformer.kt index d224bac8..621c227b 100644 --- a/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/NegativeLiteralTransformer.kt +++ b/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/NegativeLiteralTransformer.kt @@ -17,12 +17,8 @@ class NegativeLiteralTransformer : Transformer() { @Suppress("NON_EXHAUSTIVE_WHEN") when (expr.operator) { - UnaryExpr.Operator.PLUS -> { - expr.replace(operand) - } - UnaryExpr.Operator.MINUS -> { - expr.replace(operand.negate()) - } + UnaryExpr.Operator.PLUS -> expr.replace(operand) + UnaryExpr.Operator.MINUS -> expr.replace(operand.negate()) } } }