diff --git a/src/main/kotlin/org/openrewrite/RecipeDescriptorExtensions.kt b/src/main/kotlin/org/openrewrite/RecipeDescriptorExtensions.kt index 491a084..d284d29 100755 --- a/src/main/kotlin/org/openrewrite/RecipeDescriptorExtensions.kt +++ b/src/main/kotlin/org/openrewrite/RecipeDescriptorExtensions.kt @@ -32,7 +32,7 @@ fun RecipeDescriptor.asYaml(): String { } s.append(" - ${subRecipe.name}") - if (subRecipe.options.isEmpty()) { + if (subRecipe.options.isEmpty() || subRecipe.options.all { it.value == null }) { s.appendLine() } else { s.appendLine(":")