Fix addSuppressed

This commit is contained in:
Him188 2020-03-07 11:19:05 +08:00
parent 709f854cc4
commit defe7ce054
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {