change: Remove unnecessary `constructor` keyword

This commit is contained in:
Nik Clayton 2024-04-30 16:07:16 +02:00
parent 4ddd23dda6
commit 01887d427b
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ import org.junit.rules.TestWatcher
import org.junit.runner.Description import org.junit.runner.Description
@OptIn(ExperimentalCoroutinesApi::class) @OptIn(ExperimentalCoroutinesApi::class)
class MainCoroutineRule constructor(private val dispatcher: TestDispatcher = UnconfinedTestDispatcher()) : TestWatcher() { class MainCoroutineRule(private val dispatcher: TestDispatcher = UnconfinedTestDispatcher()) : TestWatcher() {
override fun starting(description: Description) { override fun starting(description: Description) {
super.starting(description) super.starting(description)
Dispatchers.setMain(dispatcher) Dispatchers.setMain(dispatcher)