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