Skip to content

Commit e2b2130

Browse files
committed
Refactor conditional
1 parent 2d413e9 commit e2b2130

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • commonmark/src/main/java/org/commonmark/node

commonmark/src/main/java/org/commonmark/node/Node.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ public void appendChild(Node child) {
5050
if (this.lastChild != null) {
5151
this.lastChild.next = child;
5252
child.prev = this.lastChild;
53-
this.lastChild = child;
5453
} else {
5554
this.firstChild = child;
56-
this.lastChild = child;
5755
}
56+
this.lastChild = child;
5857
}
5958

6059
public void prependChild(Node child) {

0 commit comments

Comments
 (0)