From d1ff5949b5807b57eab6010175b3c6f1e7c1945c Mon Sep 17 00:00:00 2001 From: Sergey Mashkov Date: Fri, 7 Aug 2015 12:12:06 +0300 Subject: ~ minor cleanup --- src/Model/DocumentationNode.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/Model') 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 get() { - val parent = owner - if (parent == null) - return listOf(this) + val parent = owner ?: return listOf(this) return parent.path + this } -- cgit