Skip to content

Commit 4b500fd

Browse files
authored
Apply suggestions from code review
1 parent 8f4585c commit 4b500fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Concurrency/Runtime/async_taskgroup_discarding_dontLeak_class_error.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ actor SimpleCountDownLatch {
2727
defer { count -= 1 }
2828
if count == 0 {
2929
fatalError("Counted down more times than expected! (From: \(from))")
30-
} else if count > 0 {
30+
} else if count == 1 {
3131
continuation?.resume()
3232
}
3333
}

0 commit comments

Comments
 (0)