Fix pathlist comparison - fixes too frequent caches updates

This commit is contained in:
Ilya Chernikov
2016-07-29 15:17:37 +02:00
parent 31d9da3d4f
commit c73ab6c0a1
@@ -148,6 +148,6 @@ class KotlinScriptExternalImportsProvider(val project: Project, private val scri
internal fun Iterable<File>.isSamePathListAs(other: Iterable<File>): Boolean {
val c1 = asSequence().map { it.canonicalPath }
val c2 = other.asSequence().map { it.canonicalPath }
return c1 == c2
return c1.zip(c2).all { it.first == it.second }
}