aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-08-14 13:55:43 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-19 13:34:10 +0200
commitac679cb145e2fbcd74bbf39d83dfbae2afeaeaad (patch)
tree7e33f664ba972cf41dc2ad3ae1e12a1f68b2023b /plugins/base
parent20f1a23cf97bf2d0d77c3942fda23af08479dfcc (diff)
downloaddokka-ac679cb145e2fbcd74bbf39d83dfbae2afeaeaad.tar.gz
dokka-ac679cb145e2fbcd74bbf39d83dfbae2afeaeaad.tar.bz2
dokka-ac679cb145e2fbcd74bbf39d83dfbae2afeaeaad.zip
Make `RecognizedLinkFormat.fromString()` eager
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/resolvers/shared/RecognizedLinkFormat.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/resolvers/shared/RecognizedLinkFormat.kt b/plugins/base/src/main/kotlin/resolvers/shared/RecognizedLinkFormat.kt
index e8044b4f..5dea3c86 100644
--- a/plugins/base/src/main/kotlin/resolvers/shared/RecognizedLinkFormat.kt
+++ b/plugins/base/src/main/kotlin/resolvers/shared/RecognizedLinkFormat.kt
@@ -13,6 +13,6 @@ enum class RecognizedLinkFormat(override val formatName: String, override val li
companion object {
fun fromString(formatName: String) =
- values().asSequence().filter { it.formatName == formatName }.firstOrNull()
+ values().firstOrNull { it.formatName == formatName }
}
-} \ No newline at end of file
+}