mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix perf test: `first` can't be null
GitOrigin-RevId: ab1d150d493bc49f14737eb7f4aeb43295a1cd4c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
89ab282508
commit
b06e9cd7cb
@@ -81,7 +81,7 @@ fun openProjectWithSdk(projectPath: String,
|
||||
}
|
||||
|
||||
fun getOrCreateModule(project: Project, projectPath: String, moduleTypeId: String): Module {
|
||||
var module = ModuleManager.getInstance(project).modules.first()
|
||||
var module = ModuleManager.getInstance(project).modules.firstOrNull()
|
||||
if (module == null) {
|
||||
module = runWriteAction {
|
||||
ModuleManager.getInstance(project).newModule(projectPath, moduleTypeId)
|
||||
|
||||
Reference in New Issue
Block a user