Skip to content

Commit 2c18279

Browse files
eugen-shulimovibbem
authored andcommitted
refactor: move some code for readability
1 parent e2934fe commit 2c18279

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/org/variantsync/diffdetective/variation/VariationUnparser.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ public static <T extends Label> String variationTreeUnparser(VariationTree<T> tr
2929
}
3030
while (!stack.empty()) {
3131
VariationTreeNode<T> node = stack.pop();
32-
for (String line : node.getLabel().getLines()) {
33-
result.append(line);
34-
result.append("\n");
35-
}
3632
if (node.isIf()) {
3733
stack.push(new VariationTreeNode<>(NodeType.ARTIFACT, null, null,
3834
linesToLabel.apply(node.getEndIf())));
3935
}
36+
for (String line : node.getLabel().getLines()) {
37+
result.append(line);
38+
result.append("\n");
39+
}
4040
for (int i = node.getChildren().size() - 1; i >= 0; i--) {
4141
stack.push(node.getChildren().get(i));
4242
}

0 commit comments

Comments
 (0)