From 01887d427bbc8afcbfb62ea4fb005ff3b2a7d110 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 30 Apr 2024 16:07:16 +0200 Subject: [PATCH] change: Remove unnecessary `constructor` keyword --- .../kotlin/app/pachli/core/testing/rules/MainCoroutineRule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/testing/src/main/kotlin/app/pachli/core/testing/rules/MainCoroutineRule.kt b/core/testing/src/main/kotlin/app/pachli/core/testing/rules/MainCoroutineRule.kt index 1750bd88e..5c2f29d80 100644 --- a/core/testing/src/main/kotlin/app/pachli/core/testing/rules/MainCoroutineRule.kt +++ b/core/testing/src/main/kotlin/app/pachli/core/testing/rules/MainCoroutineRule.kt @@ -27,7 +27,7 @@ import org.junit.rules.TestWatcher import org.junit.runner.Description @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) { super.starting(description) Dispatchers.setMain(dispatcher)