Skip to content

Commit 9e157b4

Browse files
committed
Kotlin 2.3 migration: Remove unnecessary non-null assertion
1 parent 25cc6aa commit 9e157b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-test/common/src/TestBuilders.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ public fun TestScope.runTest(
352352
}
353353
timeoutError = UncompletedCoroutinesError(message)
354354
cancellationException = CancellationException("The test timed out")
355-
(scope as Job).cancel(cancellationException!!)
355+
(scope as Job).cancel(cancellationException)
356356
}
357357
}
358358
scope.join()

0 commit comments

Comments
 (0)