Skip to content

Commit 4acb9fa

Browse files
committed
~ Remove useless @Suppress("UNCHECKED_CAST")
1 parent 0ac7af6 commit 4acb9fa

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kotlinx-coroutines-core/common/src/flow/StateFlow.kt

-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ private class StateFlowImpl<T>(initialValue: Any) : SynchronizedObject(), Mutabl
260260
}
261261
}
262262

263-
@Suppress("UNCHECKED_CAST")
264263
override suspend fun collect(collector: FlowCollector<T>) {
265264
val slot = allocateSlot()
266265
var prevState: Any? = null // previously emitted T!! | NULL (null -- nothing emitted yet)

0 commit comments

Comments
 (0)