aboutsummaryrefslogtreecommitdiff
path: root/src/main.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.kt')
-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)