diff --git a/loki/transform/transform_scalar_syntax.py b/loki/transform/transform_scalar_syntax.py index f76d09e07..64b1f7522 100644 --- a/loki/transform/transform_scalar_syntax.py +++ b/loki/transform/transform_scalar_syntax.py @@ -126,10 +126,7 @@ def simplify_sum(expr): if len(new_children) > 1: return Sum(as_tuple(new_children)) return new_children[0] - - else: - return IntLiteral(n) - + return IntLiteral(n) return expr