Fix incorrect logic in KotlinJavaScriptLibraryDetectionUtil
Previously the lambda almost always returned false, because the library root is never a JS file with metadata, which led to processFilesRecursively always returning false, which led to every library being detected as a Kotlin/JS library here
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ object KotlinJavaScriptLibraryDetectionUtil {
|
||||
return hasMetadata
|
||||
}
|
||||
|
||||
if (!VfsUtilCore.processFilesRecursively(root, { isJsFileWithMetadata(root) })) {
|
||||
if (!VfsUtilCore.processFilesRecursively(root) { !isJsFileWithMetadata(it) }) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user