mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-31 03:30:08 +08:00
Fix addSuppressed
This commit is contained in:
parent
709f854cc4
commit
defe7ce054
@ -6,7 +6,7 @@ private var isAddSuppressedSupported: Boolean = true
|
|||||||
|
|
||||||
@PublishedApi
|
@PublishedApi
|
||||||
internal actual fun Throwable.addSuppressedMirai(e: Throwable) {
|
internal actual fun Throwable.addSuppressedMirai(e: Throwable) {
|
||||||
if (this === e) {
|
if (this == e) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!isAddSuppressedSupported) {
|
if (!isAddSuppressedSupported) {
|
||||||
|
@ -4,7 +4,7 @@ private var isAddSuppressedSupported: Boolean = true
|
|||||||
|
|
||||||
@PublishedApi
|
@PublishedApi
|
||||||
internal actual fun Throwable.addSuppressedMirai(e: Throwable) {
|
internal actual fun Throwable.addSuppressedMirai(e: Throwable) {
|
||||||
if (this === e) {
|
if (this == e) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!isAddSuppressedSupported) {
|
if (!isAddSuppressedSupported) {
|
||||||
|
Loading…
Reference in New Issue
Block a user