diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-03-31 17:23:54 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-04-08 13:21:22 +0200 |
commit | 5013037c6bc555df2544f08ce25afd0307ee2cc1 (patch) | |
tree | 509f6940f343ea45731b4b547a64cc90377fb445 /plugins/base/src/main/kotlin/transformers/pages/sourcelinks | |
parent | 7d04ecbfe48125dbcd5e682b2c37fc1f7341822f (diff) | |
download | dokka-5013037c6bc555df2544f08ce25afd0307ee2cc1.tar.gz dokka-5013037c6bc555df2544f08ce25afd0307ee2cc1.tar.bz2 dokka-5013037c6bc555df2544f08ce25afd0307ee2cc1.zip |
Fixes tests
Diffstat (limited to 'plugins/base/src/main/kotlin/transformers/pages/sourcelinks')
-rw-r--r-- | plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt b/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt index 7a93f0b9..6cb35e66 100644 --- a/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt +++ b/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt @@ -20,11 +20,9 @@ import org.jetbrains.kotlin.utils.addToStdlib.safeAs class SourceLinksTransformer(val context: DokkaContext) : PageTransformer { - private lateinit var sourceLinks: List<SourceLink> - override fun invoke(input: RootPageNode): RootPageNode { - sourceLinks = context.configuration.passesConfigurations + val sourceLinks = context.configuration.passesConfigurations .flatMap { it.sourceLinks.map { sl -> SourceLink(sl, it.platformData) } } return input.transformContentPagesTree { node -> |