Skip to content

Commit

Permalink
~ Remove useless @Suppress("UNCHECKED_CAST")
Browse files Browse the repository at this point in the history
  • Loading branch information
elizarov committed May 6, 2020
1 parent c5c8576 commit 2fa83ad
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kotlinx-coroutines-core/common/src/flow/StateFlow.kt
Expand Up @@ -260,7 +260,6 @@ private class StateFlowImpl<T>(initialValue: Any) : SynchronizedObject(), Mutabl
}
}

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

0 comments on commit 2fa83ad

Please sign in to comment.