Skip to content

Commit 330b122

Browse files
committed
Remove unnecessary runWriteAction
1 parent a851cfa commit 330b122

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/test/kotlin/com/demonwav/mcdev/framework/ProjectBuilderTest.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
package com.demonwav.mcdev.framework
1212

13-
import com.intellij.openapi.application.runWriteAction
1413
import com.intellij.openapi.roots.ModuleRootModificationUtil
1514
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase
1615

@@ -32,10 +31,8 @@ abstract class ProjectBuilderTest : LightCodeInsightFixtureTestCase() {
3231
}
3332

3433
override fun tearDown() {
35-
runWriteAction {
36-
ModuleRootModificationUtil.updateModel(myFixture.module) { model ->
37-
model.removeContentEntry(model.contentEntries.first { it.file == project.baseDir })
38-
}
34+
ModuleRootModificationUtil.updateModel(myFixture.module) { model ->
35+
model.removeContentEntry(model.contentEntries.first { it.file == project.baseDir })
3936
}
4037

4138
super.tearDown()

0 commit comments

Comments
 (0)