Commit defe7ce0 authored by Him188's avatar Him188

Fix addSuppressed

parent 709f854c
...@@ -6,7 +6,7 @@ private var isAddSuppressedSupported: Boolean = true ...@@ -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 ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment