From 0b8e04af82a80ccce4460a78b614d6bc2483efae Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 29 Dec 2014 16:06:45 +0100 Subject: cleanup --- src/main.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') 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) { "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) -- cgit