aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2014-12-29 16:06:45 +0100
committerDmitry Jemerov <yole@jetbrains.com>2014-12-29 16:06:45 +0100
commit0b8e04af82a80ccce4460a78b614d6bc2483efae (patch)
tree47e40c39e2cb8c6339908cdb1515ba60ded6ff46 /src
parent2dbd849c7c603a25607bcc66025138dee3c30458 (diff)
downloaddokka-0b8e04af82a80ccce4460a78b614d6bc2483efae.tar.gz
dokka-0b8e04af82a80ccce4460a78b614d6bc2483efae.tar.bz2
dokka-0b8e04af82a80ccce4460a78b614d6bc2483efae.zip
cleanup
Diffstat (limited to 'src')
-rw-r--r--src/main.kt9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main.kt b/src/main.kt
index bc7cefd7..0c853bc7 100644
--- a/src/main.kt
+++ b/src/main.kt
@@ -128,11 +128,10 @@ public fun main(args: Array<String>) {
"markdown" -> MarkdownFormatService(locationService, signatureGenerator)
"jekyll" -> JekyllFormatService(locationService, signatureGenerator)
"kotlin-website" -> KotlinWebsiteFormatService(locationService, signatureGenerator)
- else -> null
- }
- if (formatter == null) {
- print("Unrecognized output format ${arguments.outputFormat}")
- return
+ else -> {
+ print("Unrecognized output format ${arguments.outputFormat}")
+ return
+ }
}
val generator = FileGenerator(signatureGenerator, locationService, formatter)