diff options
-rw-r--r-- | plugins/base/src/main/kotlin/parsers/MarkdownParser.kt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/parsers/MarkdownParser.kt b/plugins/base/src/main/kotlin/parsers/MarkdownParser.kt index 36005d14..05eb71ab 100644 --- a/plugins/base/src/main/kotlin/parsers/MarkdownParser.kt +++ b/plugins/base/src/main/kotlin/parsers/MarkdownParser.kt @@ -118,15 +118,13 @@ class MarkdownParser( declarationDescriptor, null, link.split('.') - ).minBy { it is ClassDescriptor }?.let { DRI.from(it) } + ).minByOrNull { it is ClassDescriptor }?.let { DRI.from(it) } } else null } catch (e1: IllegalArgumentException) { + logger.warn("Couldn't resolve link for $mdLink") null } } - }.also { - if (it == null) - logger.warn("Couldn't resolve link for $mdLink") } private fun referenceLinksHandler(node: ASTNode): DocTag { |