We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1260c8f commit c42e9f4Copy full SHA for c42e9f4
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/ui/GenerateTestsDialogWindow.kt
@@ -1011,14 +1011,10 @@ class GenerateTestsDialogWindow(val model: GenerateTestsModel) : DialogWrapper(m
1011
.map { f -> Paths.get(urlToPath(f.url)) }
1012
}
1013
1014
- return entriesPaths.all { path ->
1015
- if (Files.exists(path)) {
1016
- val fileNames = Files.walk(path).map { it.fileName }.toList()
1017
- fileNames.any { it.toString() == MOCKITO_MOCKMAKER_FILE_NAME }
1018
- } else {
1019
- false
+ return entriesPaths.all { entryPath ->
+ if (!Files.exists(entryPath)) return false
+ Files.walk(entryPath).anyMatch { it.fileName.toString() == MOCKITO_MOCKMAKER_FILE_NAME }
1020
1021
- }
1022
1023
1024
0 commit comments