Skip to content

Commit a0f7666

Browse files
committed
~ Code style
1 parent fe64780 commit a0f7666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/common/src/flow/internal/AbstractSharedFlow.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ internal abstract class AbstractSharedFlow<S : AbstractSharedFlowSlot<*>> : Sync
4545
// Actually create slot under lock
4646
var subscriptionCount: MutableStateFlow<Int>? = null
4747
val slot = synchronized(this) {
48-
val slots = when(val curSlots = slots) {
48+
val slots = when (val curSlots = slots) {
4949
null -> createSlotArray(2).also { slots = it }
5050
else -> if (nCollectors >= curSlots.size) {
5151
curSlots.copyOf(2 * curSlots.size).also { slots = it }

0 commit comments

Comments
 (0)