Skip to content

Commit f64bcde

Browse files
committed
Unreachable code fix
1 parent 54b2ecd commit f64bcde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/kotlinx-coroutines-core-common/src/channels/AbstractChannel.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ internal abstract class AbstractChannel<E> : AbstractSendChannel<E>(), Channel<E
859859

860860
private fun hasNextResult(result: Any?): Boolean {
861861
if (result is Closed<*>) {
862-
if (result.closeCause != null) recoverStackTrace(throw result.receiveException)
862+
if (result.closeCause != null) throw recoverStackTrace(result.receiveException)
863863
return false
864864
}
865865
return true

0 commit comments

Comments
 (0)