Minor: rewrite with Kotlin stdlib

This commit is contained in:
Nikolay Krasko
2015-08-10 20:25:49 +03:00
parent a085c93b5e
commit e17908e5c6
@@ -67,13 +67,7 @@ public object LibraryUtils {
platformStatic
public fun getJarFile(classesRoots: List<VirtualFile>, jarName: String): VirtualFile? {
for (root in classesRoots) {
if (root.getName() == jarName) {
return root
}
}
return null
return classesRoots.firstOrNull { it.name == jarName }
}
platformStatic