aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/pages/PageBuilder.kt
diff options
context:
space:
mode:
authorSzymon Świstun <sswistun@virtuslab.com>2019-12-17 17:13:25 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-01-08 10:45:08 +0100
commita0a5fc5e362c38ee0592ce5332bbec02131ebbd2 (patch)
treeb4f5ab63d6f32ae318d2badbe9249a93104b2e79 /core/src/main/kotlin/pages/PageBuilder.kt
parentfc1baea0b6c44ebc84a33918c3dfa13244ebf46f (diff)
downloaddokka-a0a5fc5e362c38ee0592ce5332bbec02131ebbd2.tar.gz
dokka-a0a5fc5e362c38ee0592ce5332bbec02131ebbd2.tar.bz2
dokka-a0a5fc5e362c38ee0592ce5332bbec02131ebbd2.zip
module name fix
Diffstat (limited to 'core/src/main/kotlin/pages/PageBuilder.kt')
-rw-r--r--core/src/main/kotlin/pages/PageBuilder.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/pages/PageBuilder.kt b/core/src/main/kotlin/pages/PageBuilder.kt
index 9c40f73e..b32e4f4f 100644
--- a/core/src/main/kotlin/pages/PageBuilder.kt
+++ b/core/src/main/kotlin/pages/PageBuilder.kt
@@ -9,7 +9,7 @@ class DefaultPageBuilder(
) : PageBuilder {
override fun pageForModule(m: Module): ModulePageNode =
- ModulePageNode(m.name ?: "root", contentForModule(m), m, m.packages.map { pageForPackage(it) })
+ ModulePageNode(m.name.ifEmpty { "root" }, contentForModule(m), m, m.packages.map { pageForPackage(it) })
override fun pageForPackage(p: Package) =
PackagePageNode(p.name, contentForPackage(p), p.dri, p,