mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 15:40:28 +08:00
Fix PermissibleIdentifier.allParentsWithSelf
This commit is contained in:
parent
8fc4da127b
commit
c7cde8e790
@ -32,7 +32,7 @@ public interface PermissibleIdentifier {
|
|||||||
private fun PermissibleIdentifier.allParentsWithSelf(): Sequence<PermissibleIdentifier> {
|
private fun PermissibleIdentifier.allParentsWithSelf(): Sequence<PermissibleIdentifier> {
|
||||||
return sequence {
|
return sequence {
|
||||||
yield(this@allParentsWithSelf)
|
yield(this@allParentsWithSelf)
|
||||||
yieldAll(parents.asSequence())
|
yieldAll(parents.asSequence().flatMap { it.allParentsWithSelf() })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user