Skip to content

Commit ff489dd

Browse files
authored
Convert return in expression body to labeled return in preparation for KT-22786 (#4461)
1 parent c64597c commit ff489dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,9 @@ internal open class SharedFlowImpl<T>(
519519
}
520520

521521
private fun cancelEmitter(emitter: Emitter) = synchronized(this) {
522-
if (emitter.index < head) return // already skipped past this index
522+
if (emitter.index < head) return@synchronized // already skipped past this index
523523
val buffer = buffer!!
524-
if (buffer.getBufferAt(emitter.index) !== emitter) return // already resumed
524+
if (buffer.getBufferAt(emitter.index) !== emitter) return@synchronized // already resumed
525525
buffer.setBufferAt(emitter.index, NO_VALUE)
526526
cleanupTailLocked()
527527
}

0 commit comments

Comments
 (0)