style(muscript): clean up branch

This commit is contained in:
Johannes Frohnmeyer 2024-04-05 17:45:12 +02:00
parent 7a690a8428
commit 31282ed398
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 3 additions and 9 deletions

View File

@ -90,15 +90,9 @@ public class ExprGroup extends DynamicExpr {
.map(Expr::optimize),
Stream.of(fin.optimize())
).toList();
if (packedArgs == null) {
return of(
location,
exprs,
fork
).asDynamicExpr();
} else {
return new ExprGroup(location, exprs, packedArgs, fork);
}
return packedArgs == null
? of(location, exprs, fork).asDynamicExpr()
: new ExprGroup(location, exprs, packedArgs, fork);
}
@Override