Skip to content

Commit 0457e78

Browse files
author
alxkm
committed
checkstyle: fix formatting
1 parent 7628919 commit 0457e78

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/com/thealgorithms/stacks/PostfixToInfix.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@ public static String getPostfixToInfix(String postfix) {
8787
} else {
8888
String operandB = stack.pop();
8989
String operandA = stack.pop();
90-
valueString.append('(')
91-
.append(operandA)
92-
.append(token)
93-
.append(operandB)
94-
.append(')');
90+
valueString.append('(').append(operandA).append(token).append(operandB).append(')');
9591
stack.push(valueString.toString());
9692
valueString.setLength(0);
9793
}

0 commit comments

Comments
 (0)