aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-07-14 20:32:17 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-15 15:49:06 +0200
commitf5b8ba49eae0e611669e2f89eb0906b88db6f02c (patch)
tree5d7f7c6dfb746f725acf1909f63a151f3c2eb4bd /plugins
parentc2b2f62dbce00e927214416cba33653048582443 (diff)
downloaddokka-f5b8ba49eae0e611669e2f89eb0906b88db6f02c.tar.gz
dokka-f5b8ba49eae0e611669e2f89eb0906b88db6f02c.tar.bz2
dokka-f5b8ba49eae0e611669e2f89eb0906b88db6f02c.zip
Fix unnecessary 'Couldn't resolve link for' warning
Diffstat (limited to 'plugins')
-rw-r--r--plugins/base/src/main/kotlin/parsers/MarkdownParser.kt6
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 {