mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +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> {
|
||||
return sequence {
|
||||
yield(this@allParentsWithSelf)
|
||||
yieldAll(parents.asSequence())
|
||||
yieldAll(parents.asSequence().flatMap { it.allParentsWithSelf() })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user