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:
Alexander Udalov
2017-04-12 17:22:28 +03:00
parent 01782fb4b9
commit eb0c0a8869
@@ -43,7 +43,7 @@ object KotlinJavaScriptLibraryDetectionUtil {
return hasMetadata
}
if (!VfsUtilCore.processFilesRecursively(root, { isJsFileWithMetadata(root) })) {
if (!VfsUtilCore.processFilesRecursively(root) { !isJsFileWithMetadata(it) }) {
return true
}
}