diff options
author | Sergey Mashkov <sergey.mashkov@jetbrains.com> | 2015-08-07 12:12:06 +0300 |
---|---|---|
committer | Sergey Mashkov <sergey.mashkov@jetbrains.com> | 2015-08-07 12:12:06 +0300 |
commit | d1ff5949b5807b57eab6010175b3c6f1e7c1945c (patch) | |
tree | 1ea12749f8c8d3f1242f26163003a1471d64f904 /src/Model | |
parent | 97bea8c614bfea408c845f07ddc42c29db1e81ba (diff) | |
download | dokka-d1ff5949b5807b57eab6010175b3c6f1e7c1945c.tar.gz dokka-d1ff5949b5807b57eab6010175b3c6f1e7c1945c.tar.bz2 dokka-d1ff5949b5807b57eab6010175b3c6f1e7c1945c.zip |
~ minor cleanup
Diffstat (limited to 'src/Model')
-rw-r--r-- | src/Model/DocumentationNode.kt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Model/DocumentationNode.kt b/src/Model/DocumentationNode.kt index b4343347..c3b9942d 100644 --- a/src/Model/DocumentationNode.kt +++ b/src/Model/DocumentationNode.kt @@ -114,9 +114,7 @@ public open class DocumentationNode(val name: String, val DocumentationNode.path: List<DocumentationNode> get() { - val parent = owner - if (parent == null) - return listOf(this) + val parent = owner ?: return listOf(this) return parent.path + this } |