Skip to content

Commit

Permalink
Use false for boolean values; not null
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Nov 2, 2023
1 parent 823f52d commit 2d8f127
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,9 @@ class RecipeMarkdownGenerator : Runnable {
|| option.example.matches(".*:\\s.*".toRegex()))
) {
"'" + option.example + "'"
} else {
} else if (option.type == "boolean") {
"false"
}else {
option.example
}
writeln(" ${option.name}: $ex")
Expand Down

0 comments on commit 2d8f127

Please sign in to comment.