Skip to content

Commit

Permalink
fbobjc/Libraries/LexicalPlugins
Browse files Browse the repository at this point in the history
Differential Revision: D58514203

fbshipit-source-id: 2ed83bbf4bead736b93907d7ef094b30a1204af4
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Jun 17, 2024
1 parent 4d08d76 commit be421e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ public class ListItemNode: ElementNode {
isNestedListNode(node: prevSibling),
isNestedListNode(node: nextSibling),
let list1 = prevSibling.getFirstChild() as? ListNode,
let list2 = nextSibling.getFirstChild() as? ListNode
{
let list2 = nextSibling.getFirstChild() as? ListNode {
try mergeLists(list1: list1, list2: list2)
try nextSibling.remove()
} else if let nextSibling {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ public func mergeLists(list1: ListNode, list2: ListNode) throws {
isNestedListNode(node: listItem1),
isNestedListNode(node: listItem2),
let child1 = listItem1.getFirstChild() as? ListNode,
let child2 = listItem2.getFirstChild() as? ListNode
{
let child2 = listItem2.getFirstChild() as? ListNode {
try mergeLists(list1: child1, list2: child2)
try listItem2.remove()
}
Expand Down

0 comments on commit be421e7

Please sign in to comment.