Code cleanup: get rid of _ (mostly renamed to arg)

This commit is contained in:
Mikhail Glukhikh
2015-10-19 11:00:03 +03:00
parent 059175560c
commit f61aa18a05
9 changed files with 18 additions and 18 deletions
@@ -24,7 +24,7 @@ public class JvmCliVirtualFileFinder(private val index: JvmDependenciesIndex) :
override fun findVirtualFileWithHeader(classId: ClassId): VirtualFile? {
val classFileName = classId.getRelativeClassName().asString().replace('.', '$')
return index.findClass(classId, acceptedRootTypes = JavaRoot.OnlyBinary) { dir, _ ->
return index.findClass(classId, acceptedRootTypes = JavaRoot.OnlyBinary) { dir, rootType ->
dir.findChild("$classFileName.class")?.let {
if (it.isValid()) it else null
}
@@ -87,7 +87,7 @@ public class KotlinCliJavaFileManagerImpl(private val myPsiManager: PsiManager)
override fun findPackage(packageName: String): PsiPackage? {
var found = false
val packageFqName = packageName.toSafeFqName() ?: return null
index.traverseDirectoriesInPackage(packageFqName) { _, __ ->
index.traverseDirectoriesInPackage(packageFqName) { dir, rootType ->
found = true
//abort on first found
false