Skip to content

Commit 2878951

Browse files
committed
elim empty alternatives
1 parent 97433b8 commit 2878951

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/variantsync/diffdetective/variation/diff/transform/EliminateEmptyAlternatives.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private static void elim(VariationTreeNode<DiffLinesLabel> subtree) {
8383
}
8484
// When there is exactly one child and that child is an 'else' or 'elif' we can simplify that nesting.
8585
else if (children.size() == 1) {
86-
final VariationTreeNode<DiffLinesLabel> child = children.getFirst();
86+
final VariationTreeNode<DiffLinesLabel> child = children.get(0);
8787

8888
if ((subtree.isIf() || subtree.isElif()) && (child.isElif() || child.isElse())) {
8989
// determine new feaure mapping

0 commit comments

Comments
 (0)