Skip to content

Commit 76041fe

Browse files
committed
Formatting
1 parent 1a12837 commit 76041fe

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

liquidjava-verifier/src/main/java/liquidjava/rj_language/ast/formatter/ExpressionFormatter.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
import liquidjava.utils.Utils;
2222

2323
/**
24-
* Formatter expressions that preserves only the parentheses required by precedence and associativity rules
25-
* Also formats variable names using {@link VariableFormatter}
24+
* Formatter for expressions that only adds parentheses when required by precedence and associativity rules and formats
25+
* variable names using {@link VariableFormatter}
2626
*/
2727
public class ExpressionFormatter implements ExpressionVisitor<String> {
2828

@@ -55,8 +55,7 @@ private String formatCondition(Expression child) {
5555
}
5656

5757
private String formatArguments(List<Expression> args) {
58-
return args.stream().map(expression -> formatParentheses(expression, false))
59-
.collect(Collectors.joining(", "));
58+
return args.stream().map(expression -> formatParentheses(expression, false)).collect(Collectors.joining(", "));
6059
}
6160

6261
private boolean needsParentheses(Expression parent, Expression child) {

0 commit comments

Comments
 (0)