We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c01193 commit 43693fbCopy full SHA for 43693fb
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator/TestGenerator.kt
@@ -151,7 +151,9 @@ object TestGenerator {
151
}
152
}.get()
153
154
- return if (FileModificationService.getInstance().preparePsiElementForWrite(testClass)) testClass else null
+ testClass?.let {
155
+ return if (FileModificationService.getInstance().preparePsiElementForWrite(it)) it else null
156
+ }
157
158
159
val fileTemplate = FileTemplateManager.getInstance(testDirectory.project).getInternalTemplate(
0 commit comments