diff options
-rw-r--r-- | core/src/main/kotlin/Formats/DacHtmlFormat.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/main/kotlin/Formats/DacHtmlFormat.kt b/core/src/main/kotlin/Formats/DacHtmlFormat.kt index 07fff1e07..b7c102b36 100644 --- a/core/src/main/kotlin/Formats/DacHtmlFormat.kt +++ b/core/src/main/kotlin/Formats/DacHtmlFormat.kt @@ -21,9 +21,6 @@ class DevsiteHtmlTemplateService @Inject constructor( override fun composePage(page: JavaLayoutHtmlFormatOutputBuilder.Page, tagConsumer: TagConsumer<Appendable>, headContent: HEAD.() -> Unit, bodyContent: BODY.() -> Unit) { tagConsumer.html { attributes["devsite"] = "true" - run { - val x = 0 - } head { headContent() meta(name = "top_category") { attributes["value"] = "develop" } @@ -50,6 +47,9 @@ class DevsiteHtmlTemplateService @Inject constructor( * for highlighting the current page in the left nav of DAC. */ private fun Appendable.appendDataReferenceResourceWrapper(nodes: Iterable<DocumentationNode>) { + if (nodes.none()) { + return + } val node = nodes.first() if (node.isPackage()) { val children = node.getMembersOfKinds(NodeKind.Class, NodeKind.Interface, NodeKind.Enum, |