diff --git a/compiler/util-klib/src/org/jetbrains/kotlin/library/SearchPathResolver.kt b/compiler/util-klib/src/org/jetbrains/kotlin/library/SearchPathResolver.kt index 06fa6bc7adf..2cc50842780 100644 --- a/compiler/util-klib/src/org/jetbrains/kotlin/library/SearchPathResolver.kt +++ b/compiler/util-klib/src/org/jetbrains/kotlin/library/SearchPathResolver.kt @@ -162,17 +162,12 @@ abstract class KotlinLibrarySearchPathResolver( } override fun resolve(unresolved: LenientUnresolvedLibrary, isDefaultLink: Boolean): L? { - return resolveOrNull(unresolved, isDefaultLink).also { resolvedLibrary -> - if (resolvedLibrary == null) { - logger.warning("Could not find \"${unresolved.path}\" in ${searchRoots.map { it.absolutePath }}") - } - } + return resolveOrNull(unresolved, isDefaultLink) } override fun resolve(unresolved: RequiredUnresolvedLibrary, isDefaultLink: Boolean): L { return resolveOrNull(unresolved, isDefaultLink) ?: logger.fatal("Could not find \"${unresolved.path}\" in ${searchRoots.map { it.absolutePath }}") - } override fun libraryMatch(candidate: L, unresolved: UnresolvedLibrary): Boolean = true