fix(common): mark `CommentNode#findTopMostParent` as `tailrec`
This commit is contained in:
parent
5061843779
commit
8735f7f8e8
|
@ -71,7 +71,7 @@ internal fun setExpanded(commentNode: CommentNode, expanded: Boolean): CommentNo
|
|||
return commentNode
|
||||
}
|
||||
|
||||
internal fun findTopMostParent(node: CommentNode): CommentNode {
|
||||
internal tailrec fun findTopMostParent(node: CommentNode): CommentNode {
|
||||
val parent = node.parent
|
||||
return if (parent != null) {
|
||||
findTopMostParent(parent)
|
||||
|
|
Loading…
Reference in New Issue